Move taxons and taxonomies api routes to api out of spree routes

This commit is contained in:
luisramos0
2019-08-14 21:55:36 +01:00
parent 92a270165e
commit 192bff4fed
2 changed files with 11 additions and 10 deletions

View File

@@ -31,5 +31,16 @@ Openfoodnetwork::Application.routes.draw do
post '/product_images/:product_id', to: 'product_images#update_product_image'
resources :taxons, :only => [:index]
resources :taxonomies do
member do
get :jstree
end
resources :taxons do
member do
get :jstree
end
end
end
end
end

View File

@@ -90,16 +90,6 @@ Spree::Core::Engine.routes.prepend do
end
end
end
resources :taxons, :only => [:index]
resources :taxonomies do
resources :taxons do
member do
get :jstree
end
end
end
end
namespace :admin do