Move checkout_state route from spree to main_app

This commit is contained in:
Matt-Yorkley
2021-04-03 18:52:39 +01:00
parent dd73af8e7a
commit fe507f63fc
2 changed files with 3 additions and 3 deletions

View File

@@ -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'

View File

@@ -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