Convert match routes to get routes to be compatible with rails 4

This commit is contained in:
luisramos0
2019-05-08 15:43:00 +01:00
parent 4ff0bf8162
commit 61def8f2e7
2 changed files with 6 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ Openfoodnetwork::Application.routes.draw do
get "/cart", :to => "spree/orders#edit", :as => :cart
put "/cart", :to => "spree/orders#update", :as => :update_cart
put "/cart/empty", :to => 'spree/orders#empty', :as => :empty_cart
match '/orders/:id/token/:token' => 'spree/orders#show', :via => :get, :as => :token_order
get '/orders/:id/token/:token' => 'spree/orders#show', :as => :token_order
resource :cart, controller: "cart" do
post :populate

View File

@@ -89,15 +89,15 @@ Spree::Core::Engine.routes.prepend do
resources :products
match '/locale/set', :to => 'locale#set'
get '/locale/set', :to => 'locale#set'
resources :states, :only => :index
resources :countries, :only => :index
# route globbing for pretty nested taxon and product paths
match '/t/*id', :to => 'taxons#show', :as => :nested_taxons
get '/t/*id', :to => 'taxons#show', :as => :nested_taxons
match '/unauthorized', :to => 'home#unauthorized', :as => :unauthorized
match '/content/cvv', :to => 'content#cvv', :as => :cvv
match '/content/*path', :to => 'content#show', :via => :get, :as => :content
get '/unauthorized', :to => 'home#unauthorized', :as => :unauthorized
get '/content/cvv', :to => 'content#cvv', :as => :cvv
get '/content/*path', :to => 'content#show', :as => :content
end