lib/rails/routing_mapper.rb in para-0.6.2 vs lib/rails/routing_mapper.rb in para-0.6.3
- old
+ new
@@ -45,20 +45,20 @@
# By default, use absolute paths to para default controllers, avoiding
# namespacing issues in plugins and other module namespaced scenarios
#
controller = options.fetch(:controller, '/para/admin/crud_resources')
imports_controller = options.fetch(:imports_controller, '/para/admin/imports')
+ exports_controller = options.fetch(:exports_controller, '/para/admin/exports')
namespace :admin do
constraints Para::Routing::ComponentControllerConstraint.new(controller) do
scope endpoint, as: as do
scope options[:scope] do
resources :resources, controller: controller do
collection do
patch :order
patch :tree
- get :export
end
member do
post :clone
end
@@ -67,9 +67,13 @@
add_extensions_for(:crud_component)
end
scope ':importer' do
resources :imports, controller: imports_controller
+ end
+
+ scope ':exporter' do
+ resources :exports, controller: exports_controller
end
end
end
end
end