Sha256: a57c786b811e8a57ee2109e72ea6fe8c02e79e5d7b7a08893abf849947eb3de4

Contents?: true

Size: 561 Bytes

Versions: 11

Compression:

Stored size: 561 Bytes

Contents

Alchemy::Custom::Model::Engine.routes.draw do

  namespace :admin do
    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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
alchemy-custom-model-3.2 config/routes.rb
alchemy-custom-model-3.1.5 config/routes.rb
alchemy-custom-model-3.1.4 config/routes.rb
alchemy-custom-model-3.1.3 config/routes.rb
alchemy-custom-model-3.1.2 config/routes.rb
alchemy-custom-model-3.1.1 config/routes.rb
alchemy-custom-model-3.1.0 config/routes.rb
alchemy-custom-model-2.2.2 config/routes.rb
alchemy-custom-model-3.0.0 config/routes.rb
alchemy-custom-model-2.2.1 config/routes.rb
alchemy-custom-model-2.2.0 config/routes.rb