diff --git a/config/routes/api.rb b/config/routes/api.rb index 4a193fec7f..a093f3a765 100644 --- a/config/routes/api.rb +++ b/config/routes/api.rb @@ -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 diff --git a/config/routes/spree.rb b/config/routes/spree.rb index 1dc3c32071..94537a587b 100644 --- a/config/routes/spree.rb +++ b/config/routes/spree.rb @@ -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