Sha256: b09a8adfa624253b0f7c433915c1d9dc4ebed748f86e231ee861e0062dc922ef

Contents?: true

Size: 1.17 KB

Versions: 72

Compression:

Stored size: 1.17 KB

Contents

# frozen_string_literal: true

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

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

  get '/locale/set', to: 'locale#set'
  post '/locale/set', to: 'locale#set', as: :select_locale

  # 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
    resources :coupon_codes, only: :create
  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

72 entries across 72 versions & 1 rubygems

Version Path
solidus_frontend-4.0.0 config/routes.rb
solidus_frontend-4.0.0.dev config/routes.rb
solidus_frontend-3.4.0 config/routes.rb
solidus_frontend-3.1.9 config/routes.rb
solidus_frontend-3.4.0.dev config/routes.rb
solidus_frontend-3.3.0 config/routes.rb
solidus_frontend-3.2.5 config/routes.rb
solidus_frontend-3.2.4 config/routes.rb
solidus_frontend-3.2.3 config/routes.rb
solidus_frontend-3.1.8 config/routes.rb
solidus_frontend-3.0.8 config/routes.rb
solidus_frontend-3.2.2 config/routes.rb
solidus_frontend-3.2.1 config/routes.rb
solidus_frontend-3.3.0.alpha config/routes.rb
solidus_frontend-3.2.0 config/routes.rb
solidus_frontend-3.2.0.alpha config/routes.rb
solidus_frontend-3.0.7 config/routes.rb
solidus_frontend-2.11.17 config/routes.rb
solidus_frontend-3.1.7 config/routes.rb
solidus_frontend-2.11.16 config/routes.rb