Sha256: 6f02cba3deef68098aa894a93be186ea40dcb71f43664cbd3b0b076497e3d991

Contents?: true

Size: 555 Bytes

Versions: 17

Compression:

Stored size: 555 Bytes

Contents

Refinery::Core::Engine.routes.draw do
<% unless skip_frontend? %>
  # Frontend routes
  namespace :<%= namespacing.underscore %> do
    resources :<%= plural_name %><%= ", :path => ''" if namespacing.underscore == plural_name %>, :only => [:index, :show]
  end
<% end %>
  # Admin routes
  namespace :<%= namespacing.underscore %>, :path => '' do
    namespace :admin, :path => <%= backend_route %> do
      resources :<%= plural_name %>, :except => :show do
        collection do
          post :update_positions
        end
      end
    end
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
refinerycms-core-4.0.3 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-4.0.2 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-4.0.1 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-3.0.6 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-4.0.0 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-3.0.5 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-3.0.4 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-3.0.3 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-3.0.2 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-3.0.1 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-3.0.0 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-2.1.5 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-2.1.4 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-2.1.3 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-2.1.2 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-2.1.1 lib/generators/refinery/engine/templates/config/routes.rb.erb
refinerycms-core-2.1.0 lib/generators/refinery/engine/templates/config/routes.rb.erb