diff --git a/config/routes.rb b/config/routes.rb index 5236a42c62..22e0db432a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -68,8 +68,9 @@ Openfoodnetwork::Application.routes.draw do resources :webhooks, only: [:create] end - get '/checkout', :to => 'checkout#edit' , :as => :checkout - put '/checkout', :to => 'checkout#update' , :as => :update_checkout + get '/checkout', to: 'checkout#edit' , as: :checkout + put '/checkout', to: 'checkout#update' , as: :update_checkout + get '/checkout/:state', to: 'checkout#edit', as: :checkout_state get '/checkout/paypal_payment/:order_id', to: 'checkout#paypal_payment', as: :paypal_payment get 'embedded_shopfront/shopfront_session', to: 'application#shopfront_session' diff --git a/config/routes/spree.rb b/config/routes/spree.rb index a16ccaf107..f93a869170 100644 --- a/config/routes/spree.rb +++ b/config/routes/spree.rb @@ -170,7 +170,6 @@ Spree::Core::Engine.routes.draw do resources :products # Used by spree_paypal_express - get '/checkout/:state', :to => 'checkout#edit', :as => :checkout_state get '/content/cvv', :to => 'content#cvv', :as => :cvv get '/content/*path', :to => 'content#show', :as => :content get '/paypal', :to => "paypal#express", :as => :paypal_express