diff --git a/config/routes/spree.rb b/config/routes/spree.rb index 4e7165796c..ad8973a84a 100644 --- a/config/routes/spree.rb +++ b/config/routes/spree.rb @@ -29,12 +29,6 @@ Spree::Core::Engine.routes.prepend do match '/admin/payment_methods/show_provider_preferences' => 'admin/payment_methods#show_provider_preferences', :via => :get put 'credit_cards/new_from_token', to: 'credit_cards#new_from_token' - namespace :admin do - namespace :reports do - resource :enterprise_fee_summary, only: [:new, :create] - end - end - resources :credit_cards namespace :api, :defaults => { :format => 'json' } do diff --git a/engines/order_management/config/routes.rb b/engines/order_management/config/routes.rb index d366f73ef2..e221867e7e 100644 --- a/engines/order_management/config/routes.rb +++ b/engines/order_management/config/routes.rb @@ -1,2 +1,7 @@ -OrderManagement::Engine.routes.draw do +Spree::Core::Engine.routes.prepend do + namespace :admin do + namespace :reports do + resource :enterprise_fee_summary, only: [:new, :create] + end + end end