Sha256: c21750705ae083aa6034409f5521278c6cb1ddfe9dd5a2f8120e6206daf8f6da
Contents?: true
Size: 638 Bytes
Versions: 2
Compression:
Stored size: 638 Bytes
Contents
Comable::Core::Engine.routes.draw do root to: 'products#index' resources :products resource :cart do collection do # TODO: post => put post :add put :checkout end end resource :order, only: [:create] do collection do get 'signin', as: :signin put 'guest', as: :guest get ':state', action: :edit, as: :next put ':state', action: :update end end devise_for :user, path: :member, class_name: Comable::User.name, module: :devise resource :user, path: :member do member do get :addresses put :addresses, action: :update_addresses end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
comable_frontend-0.4.1 | config/routes.rb |
comable_frontend-0.4.0 | config/routes.rb |