Sha256: c6eb0600501cc4cabd82d93f016d7973eaa4327543e806bb383a43dbfeb3ccec

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

Ecom::Engine.routes.draw do
  resources :categories

  devise_for :users, {
    :class_name => "Ecom::User",
    module: :devise
  }
  resources :products
  root to: "products#index"
  
  get "cart" => "cart#show"
  get "cart/add/:id" => "cart#add", :as => :add_to_cart
  post "cart/remove/:id" => "cart#remove", :as => :remove_from_cart
  post "cart/checkout" => "cart#checkout", :as => :checkout
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ecom-0.1.1 config/routes.rb