mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
Convert match routes to get routes to be compatible with rails 4
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user