Sha256: 1001f7548e71e7e089f9f6d196ad8cb1534c2490c92a59954efcd6ebc9be291c

Contents?: true

Size: 775 Bytes

Versions: 4

Compression:

Stored size: 775 Bytes

Contents

Kuhsaft::Engine.routes.draw do

  namespace :cms do
    resources :pages, except: :show do
      post :sort, on: :collection
      get :mirror
    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' => 'sitemaps#index', format: 'xml'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
kuhsaft-2.6.3 config/routes.rb
kuhsaft-2.6.2 config/routes.rb
kuhsaft-2.6.1 config/routes.rb
kuhsaft-2.6.0 config/routes.rb