config/routes.rb in spree_backend-4.5.1 vs config/routes.rb in spree_backend-4.6.0

- old
+ new

@@ -10,11 +10,16 @@ resources :promotion_categories, except: [:show] resources :zones - resources :stores, except: %i[index show] + resources :stores, except: %i[index show] do + member do + get :translations + post :translations, to: 'stores#edit_translations' + end + end resources :countries do resources :states end resources :states @@ -41,17 +46,31 @@ end end resources :variants_including_master, only: [:update] resources :prices, only: [:index, :create] resources :digitals, only: [:index, :create, :destroy] + member do + get :translations + post :translations, to: 'products#edit_translations' + end end resources :option_types do collection do post :update_positions post :update_values_positions end + member do + get :translations + post :translations, to: 'option_types#edit_translations' + end + resources :option_values do + member do + get :translations + post :translations, to: 'option_values#edit_translations' + end + end end delete '/option_values/:id', to: 'option_values#destroy', as: :option_value resources :oauth_applications @@ -126,13 +145,19 @@ resources :taxonomies do collection do post :update_positions end + member do + get :translations + post :translations, to: 'taxonomies#edit_translations' + end resources :taxons do member do delete :remove_icon + get :translations + post :translations, to: 'taxons#edit_translations' end end end resources :taxons, only: [:index, :show] @@ -187,9 +212,11 @@ member do delete :remove_icon end end end + + resources :data_feeds resources :webhooks_subscribers get '/forbidden', to: 'errors#forbidden', as: :forbidden resource :dashboard, controller: 'dashboard'