Sha256: 1aa653f6b348c7e4081ebfe9552d14c8d9699e2e483e597088f3f3ab864fc535
Contents?: true
Size: 1.01 KB
Versions: 4
Compression:
Stored size: 1.01 KB
Contents
Qbrick::Engine.routes.draw do devise_for :admins, class_name: 'Qbrick::Admin', module: :devise namespace :cms do resources :settings_collections, only: [:update, :index] 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] 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('|')}/ 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 |
---|---|
qbrick-2.6.0 | config/routes.rb |
qbrick-2.5.2 | config/routes.rb |
qbrick-2.5.1 | config/routes.rb |
qbrick-2.5.0 | config/routes.rb |