improvements
This commit is contained in:
+3
-1
@@ -18,10 +18,11 @@ Qrammer::Application.routes.draw do
|
||||
resources :product_categories
|
||||
end
|
||||
|
||||
# SUPPLIER
|
||||
get '/supplier' => 'supplier#home', as: :supplier_root
|
||||
get '/supplier/active_orders' => 'supplier#active_orders', as: :supplier_active_orders
|
||||
get '/supplier/active_lists' => 'supplier#active_lists', as: :supplier_active_lists
|
||||
get 'supplier/lists/:list_id' => 'supplier#show_list', as: :supplier_show_list
|
||||
get '/supplier/lists/:list_id' => 'supplier#show_list', as: :supplier_show_list
|
||||
|
||||
post '/supplier/close_list' => 'supplier#close_list', as: :supplier_close_list
|
||||
post '/supplier/mark_list_as_helped' => 'supplier#mark_list_as_helped', as: :supplier_mark_list_as_helped
|
||||
@@ -35,6 +36,7 @@ Qrammer::Application.routes.draw do
|
||||
get '/supplier/settings' => 'supplier#edit', as: :supplier_settings
|
||||
match '/supplier/settings' => 'supplier#update', as: :supplier_update_settings, via: [:put, :post]
|
||||
|
||||
# USER
|
||||
match '/user' => 'user#home', as: :user_root
|
||||
get '/user/active_list(.:format)' => 'user#active_list', as: :user_active_list
|
||||
get '/user/list_info' => 'user#list_info', as: :user_list_info
|
||||
|
||||
Reference in New Issue
Block a user