Sha256: 5381314bdba77c82ce3b585755e86c224ca00dc2e4d1580177537235c1ddabf2
Contents?: true
Size: 705 Bytes
Versions: 7
Compression:
Stored size: 705 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 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
7 entries across 7 versions & 1 rubygems