diff --git a/app/controllers/shop_controller.rb b/app/controllers/shop_controller.rb index a4fe70c71b..fd1926e102 100644 --- a/app/controllers/shop_controller.rb +++ b/app/controllers/shop_controller.rb @@ -34,7 +34,6 @@ class ShopController < BaseController private def set_distributor - unless @distributor = current_distributor redirect_to root_path end diff --git a/config/routes.rb b/config/routes.rb index 371620f0ec..bcbd37d7db 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,13 +1,18 @@ Openfoodnetwork::Application.routes.draw do root :to => 'home#temp_landing_page' - resource :shop, controller: :shop do get :products post :order_cycle get :order_cycle end + namespace :shop do + resource :checkout, controller: :checkout do + get :new + end + end + resources :enterprises do collection do get :suppliers