Sha256: 8ec1884460bd8e1f2000c2d0f362d0dd4f2641d855fdd0f7f9b043ae9b191057
Contents?: true
Size: 663 Bytes
Versions: 1
Compression:
Stored size: 663 Bytes
Contents
Comable::Core::Engine.routes.draw do root to: 'home#show' resource :home, only: :show 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comable_frontend-0.4.2 | config/routes.rb |