config/routes.rb in alchemy-custom-model-2.1.2 vs config/routes.rb in alchemy-custom-model-2.2.0
- old
+ new
@@ -4,5 +4,21 @@
match '/elfinder_ui' => 'files#ui', via: [:get]
match '/elfinder' => 'files#elfinder', via: [:get, :post]
end
end
+
+
+Alchemy::Engine.routes.draw do
+
+ if "Alchemy::Node".safe_constantize
+ namespace :admin do
+ resources :nodes do
+ collection do
+ get :custom_models, defaults: {format: 'json'}, constraints: {format: :json}
+ get :custom_models_methods, defaults: {format: 'json'}, constraints: {format: :json}
+ end
+ end
+ end
+ end
+end
+