Sha256: 43c8ef618f3f9f0974f49862073f6bdadaa071058146b16cc53904b08de856ea

Contents?: true

Size: 764 Bytes

Versions: 5

Compression:

Stored size: 764 Bytes

Contents

Kuhsaft::Engine.routes.draw do

  namespace :cms do
    resources :pages, except: :show do
      post :sort, on: :collection
    end

    resources :bricks, except: [:edit, :index] do
      post :sort, on: :collection
    end

    resources :assets
    resources :ckimages, only: [:create, :index, :destroy]
    root to: 'pages#index'
  end

  scope ':locale', locale: /#{I18n.available_locales.join('|')}/ do
    namespace :api, defaults: { format: :json } do
      resources :pages, only: :index
    end

    resources :pages,
              only: [:index],
              defaults: { locale: I18n.locale }
    get '(*url)' => 'pages#show', as: :page
  end

  get '/pages/:id' => 'pages#lookup_by_id'
  get '/sitemap.format' => 'sitemaps#index', format: 'xml'
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
qbrick-2.5.0.pre config/routes.rb
kuhsaft-2.4.3 config/routes.rb
kuhsaft-2.4.2 config/routes.rb
kuhsaft-2.4.1 config/routes.rb
kuhsaft-2.4.0 config/routes.rb