Move api products and variants routes and ctrl out of spree namespace

This commit is contained in:
luisramos0
2019-08-01 14:28:55 +01:00
parent b7f7038934
commit 31bac9641f
6 changed files with 15 additions and 15 deletions

View File

@@ -1,5 +1,20 @@
Openfoodnetwork::Application.routes.draw do
namespace :api do
resources :products do
collection do
get :bulk_products
get :overridable
end
delete :soft_delete
post :clone
resources :variants do
delete :soft_delete
end
end
resources :variants, :only => [:index]
resources :enterprises do
post :update_image, on: :member
get :managed, on: :collection

View File

@@ -62,21 +62,6 @@ Spree::Core::Engine.routes.prepend do
get :authorise_api, on: :collection
end
resources :products do
collection do
get :bulk_products
get :overridable
end
delete :soft_delete
post :clone
resources :variants do
delete :soft_delete
end
end
resources :variants, :only => [:index]
resources :orders do
get :managed, on: :collection