Sha256: a550282c2bd66513079d6ba1843be72893c070f6cb90aeee08c28169a7a49613

Contents?: true

Size: 671 Bytes

Versions: 10

Compression:

Stored size: 671 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'


  # extend admin area
  scope '/cmsadmin', module: "optimacms" do
    namespace :admin do
      resources :news do
        collection do
          post 'search'
        end
      end
    end
  end


  # the last!!!
  mount Optimacms::Engine => "/"

  #
  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

10 entries across 10 versions & 1 rubygems

Version Path
optimacms-0.2.1 spec/dummy/config/routes.rb
optimacms-0.1.59 spec/dummy/config/routes.rb
optimacms-0.1.58 spec/dummy/config/routes.rb
optimacms-0.1.57 spec/dummy/config/routes.rb
optimacms-0.1.56 spec/dummy/config/routes.rb
optimacms-0.1.55 spec/dummy/config/routes.rb
optimacms-0.1.54 spec/dummy/config/routes.rb
optimacms-0.1.53 spec/dummy/config/routes.rb
optimacms-0.1.52 spec/dummy/config/routes.rb
optimacms-0.1.51 spec/dummy/config/routes.rb