Files
openfoodnetwork/config/routes.rb
2012-07-19 22:48:42 +10:00

23 lines
605 B
Ruby

Openfoodweb::Application.routes.draw do
# Mount Spree's routes
mount Spree::Core::Engine, :at => '/'
end
Spree::Core::Engine.routes.prepend do
resources :suppliers
resources :distributors do
get :select, :on => :member
get :deselect, :on => :collection
end
namespace :admin do
resources :distributors do
post :bulk_update, :on => :collection, :as => :bulk_update
end
resources :suppliers
end
match '/admin/reports/orders_and_distributors' => 'admin/reports#orders_and_distributors', :as => "orders_and_distributors_admin_reports", :via => [:get, :post]
end