Move routes for enterprise fee summary to engine

This commit is contained in:
Kristina Lim
2018-12-14 06:36:16 +11:00
committed by luisramos0
parent 9e035efd50
commit c61a83faca
2 changed files with 6 additions and 7 deletions

View File

@@ -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

View File

@@ -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