mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-23 01:03:21 +00:00
23 lines
605 B
Ruby
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
|