Sha256: f176e36ef20b9f6a7957f7c1ee06b7a4de2c4130f1e10b34664a3df0619a7f31

Contents?: true

Size: 1.04 KB

Versions: 15

Compression:

Stored size: 1.04 KB

Contents

Spree::Core::Engine.routes.draw do
  root to: 'home#index'

  resources :products, only: [:index, :show]

  get '/locale/set', to: 'locale#set'

  # non-restful checkout stuff
  patch '/checkout/update/:state', to: 'checkout#update', as: :update_checkout
  get '/checkout/:state', to: 'checkout#edit', as: :checkout_state
  get '/checkout', to: 'checkout#edit', as: :checkout

  get '/orders/populate', to: 'orders#populate_redirect'
  get '/orders/:id/token/:token' => 'orders#show', :as => :token_order

  resources :orders, except: [:index, :new, :create, :destroy] do
    post :populate, on: :collection
  end

  get '/cart', to: 'orders#edit', as: :cart
  patch '/cart', to: 'orders#update', as: :update_cart
  put '/cart/empty', to: 'orders#empty', as: :empty_cart

  # route globbing for pretty nested taxon and product paths
  get '/t/*id', to: 'taxons#show', as: :nested_taxons

  get '/unauthorized', to: 'home#unauthorized', as: :unauthorized
  get '/content/cvv', to: 'content#cvv', as: :cvv
  get '/cart_link', to: 'store#cart_link', as: :cart_link
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
solidus_frontend-2.1.1 config/routes.rb
solidus_frontend-2.0.3 config/routes.rb
solidus_frontend-1.4.2 config/routes.rb
solidus_frontend-2.0.2 config/routes.rb
solidus_frontend-1.4.1 config/routes.rb
solidus_frontend-2.1.0 config/routes.rb
solidus_frontend-2.1.0.rc1 config/routes.rb
solidus_frontend-2.0.1 config/routes.rb
solidus_frontend-2.1.0.beta1 config/routes.rb
solidus_frontend-2.0.0 config/routes.rb
solidus_frontend-1.4.0 config/routes.rb
solidus_frontend-2.0.0.rc1 config/routes.rb
solidus_frontend-1.4.0.rc1 config/routes.rb
solidus_frontend-2.0.0.beta1 config/routes.rb
solidus_frontend-1.4.0.beta1 config/routes.rb