Sha256: 4f81cd3559d2f537947cb960ab97958dff65bf632455104ba0c52cb76a5f261a

Contents?: true

Size: 831 Bytes

Versions: 3

Compression:

Stored size: 831 Bytes

Contents

Rails.application.routes.draw do

  # users for optimacms
  devise_for :cms_admin_users, Optimacms::Devise.config

  # usual

  devise_for :users

  get 'hello.html', to: 'my#hello', as: 'hello'

  # debug
  get '/debug/:action', to: 'debug#action', as: 'debug'


  # extend admin area
  scope '/'+Optimacms.config.main_namespace+'/'+Optimacms.config.admin_namespace, module: "optimacms" do
    namespace :admin do
      resources :news do
        collection do
          post 'search'
        end
      end
    end
  end


  # the last!!!
  mount Optimacms::Engine => '/'+Optimacms.config.main_namespace

  #
  root to: 'home#index'


  # all pages
  #scope module: 'optimacms' do
  #  match '*path', :to => 'pages#show', via: :all
  #end

  #, format: false
  # , constraints: -> (req) { !(req.fullpath =~ /^\/assets\/.*/) }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
optimacms-0.3.35 spec/dummy/config/routes.rb
optimacms-0.3.34 spec/dummy/config/routes.rb
optimacms-0.3.30 spec/dummy/config/routes.rb