Sha256: c727b942200226dc7d6652a7abe90a999ce67b5c644a3ffd338c4d97cfb9270a

Contents?: true

Size: 774 Bytes

Versions: 11

Compression:

Stored size: 774 Bytes

Contents

ConstructorPages::Engine.routes.draw do
  scope '/admin' do
    resources :pages, except: [:show]
    resources :templates, except: [:show]
    resources :fields, except: [:show, :new, :edit]

    %w{page template field}.each do |c|
      %w{up down}.each do |d|
        get "#{c.pluralize}/move/#{d}/:id" => "#{c.pluralize}#move_#{d}", as: "#{c}_move_#{d}"
      end
    end

    scope '/fields' do
      get ':template_id/new/' => 'fields#new', as: :new_field
      get ':id/:template_id/edit/' => 'fields#edit', as: :edit_field
    end

    get '/pages/:page/new' => 'pages#new', as: :new_child_page
  end

  root :to => 'pages#show'

  get '*all/search/:what_search' => 'pages#search', format: false
  get '*all.:format' => 'pages#show'
  get '*all' => 'pages#show'
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
constructor-pages-0.7.7 config/routes.rb
constructor-pages-0.7.6 config/routes.rb
constructor-pages-0.7.5 config/routes.rb
constructor-pages-0.7.4 config/routes.rb
constructor-pages-0.7.3 pages/config/routes.rb
constructor-core-0.7.3 pages/config/routes.rb
constructor-cms-0.7.3 pages/config/routes.rb
constructor-pages-0.7.2 pages/config/routes.rb
constructor-core-0.7.2 pages/config/routes.rb
constructor-cms-0.7.2 pages/config/routes.rb
constructor-core-0.7.1 pages/config/routes.rb