Sha256: 498407ae8ff98ecc3e9df38ad8b2403a8d0cd57eb71a7488dab8f579b40dfb1e

Contents?: true

Size: 443 Bytes

Versions: 14

Compression:

Stored size: 443 Bytes

Contents

ConstructorCore::Engine.routes.draw do
  scope 'admin' do
    get 'profile/:id' => 'users#profile', as: :user
    post 'profile/:id' => 'users#update_password'

    devise_for :users, {
        class_name: 'ConstructorCore::User',
        module: :devise
    }
  end

  as :user do
    get '/admin' => 'sessions#new'
    get '/login' => 'sessions#new'
    post '/login' => 'sessions#create'
    delete '/logout' => 'sessions#destroy'
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
constructor-core-0.6.1 config/routes.rb
constructor-cms-0.6.1 core/config/routes.rb
constructor-core-0.6.0 config/routes.rb
constructor-cms-0.6.0 core/config/routes.rb
constructor-core-0.5.8 config/routes.rb
constructor-cms-0.5.8 core/config/routes.rb
constructor-core-0.5.7 config/routes.rb
constructor-core-0.5.6 config/routes.rb
constructor-core-0.5.5 config/routes.rb
constructor-core-0.5.4 config/routes.rb
constructor-core-0.5.3 config/routes.rb
constructor-core-0.5.2 config/routes.rb
constructor-core-0.5.1 config/routes.rb
constructor-core-0.5.0 config/routes.rb