Sha256: d7d677c0a9adeefa3c727921c7a98f5305355f233183622f78d3985c7b2ef642
Contents?: true
Size: 1.06 KB
Versions: 10
Compression:
Stored size: 1.06 KB
Contents
Qbrick::Engine.routes.draw do devise_for :admins, class_name: 'Qbrick::Admin', module: :devise namespace :cms do resources :settings_collections, only: %i(update index) resources :pages, except: :show do post :sort, on: :collection get :mirror end resources :bricks, except: %i(edit index) do post :sort, on: :collection end resources :assets resources :ckimages, only: %i(create index destroy) resource :account, only: :edit do collection do patch 'update_password' end end resources :admins root to: 'pages#index' end scope '(:locale)', locale: /#{I18n.available_locales.join('|')}/, defaults: { locale: -> { I18n.default_locale } } do namespace :api, defaults: { format: :json } do resources :pages, only: :index end resources :pages, only: %i(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
10 entries across 10 versions & 1 rubygems