config/routes.rb in qbrick-2.5.0.pre vs config/routes.rb in qbrick-2.5.0

- old
+ new

@@ -1,18 +1,30 @@ -Kuhsaft::Engine.routes.draw do +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 @@ -24,7 +36,7 @@ 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' + get '/sitemap' => 'sitemaps#index', format: 'xml' end