diff --git a/config/routes.rb b/config/routes.rb index 2a6af985f8..50fb7ff108 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -16,7 +16,6 @@ Openfoodnetwork::Application.routes.draw do get :order_cycle end - resources :groups resources :producers, only: [:index] do collection do get :signup @@ -29,6 +28,12 @@ Openfoodnetwork::Application.routes.draw do end end + resources :groups, only: [:index, :show] do + collection do + get :signup + end + end + get '/checkout', :to => 'checkout#edit' , :as => :checkout put '/checkout', :to => 'checkout#update' , :as => :update_checkout get '/checkout/paypal_payment/:order_id', to: 'checkout#paypal_payment', as: :paypal_payment