Sha256: 91d598c68281909a4020797c51f506c9ebc64eb62fadaf439e9cf9a75b7c057d

Contents?: true

Size: 1.1 KB

Versions: 19

Compression:

Stored size: 1.1 KB

Contents

Spree::Core::Engine.add_routes 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'

  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 '/content/test', to: 'content#test'
  get '/cart_link', to: 'store#cart_link', as: :cart_link

  get '/api_tokens', to: 'store#api_tokens'
  post '/ensure_cart', to: 'store#ensure_cart'
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
spree_frontend-3.7.14.1 config/routes.rb
spree_frontend-3.7.14 config/routes.rb
spree_frontend-3.7.13 config/routes.rb
spree_frontend-3.7.12 config/routes.rb
spree_frontend-3.7.11 config/routes.rb
spree_frontend-3.7.10 config/routes.rb
spree_frontend-3.7.9 config/routes.rb
spree_frontend-3.7.8 config/routes.rb
spree_frontend-3.7.7 config/routes.rb
spree_frontend-3.7.6 config/routes.rb
spree_frontend-3.7.5 config/routes.rb
spree_frontend-3.7.4 config/routes.rb
spree_frontend-3.7.3 config/routes.rb
spree_frontend-3.7.2 config/routes.rb
spree_frontend-3.7.1 config/routes.rb
spree_frontend-3.7.0 config/routes.rb
spree_frontend-3.7.0.rc3 config/routes.rb
spree_frontend-3.7.0.rc2 config/routes.rb
spree_frontend-3.7.0.rc1 config/routes.rb