Sha256: 1a48883d0c6438b56b56e87123d4d5f29911b2f2944c1942a6d46418da783f92

Contents?: true

Size: 456 Bytes

Versions: 45

Compression:

Stored size: 456 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', as: :logout
  end
end

Version data entries

45 entries across 45 versions & 3 rubygems

Version Path
constructor-core-1.0.0beta2 config/routes.rb
constructor-core-1.0.0beta1 config/routes.rb
constructor-core-0.9.1 config/routes.rb
constructor-core-0.9.0 config/routes.rb
constructor-core-0.8.19 config/routes.rb
constructor-core-0.8.18 config/routes.rb
constructor-core-0.8.17 config/routes.rb
constructor-core-0.8.16 config/routes.rb
constructor-core-0.8.15 config/routes.rb
constructor-core-0.8.14 config/routes.rb
constructor-core-0.8.13 config/routes.rb
constructor-core-0.8.12 config/routes.rb
constructor-core-0.8.11 config/routes.rb
constructor-core-0.8.10 config/routes.rb
constructor-core-0.8.8 config/routes.rb
constructor-core-0.8.7 config/routes.rb
constructor-core-0.8.6 config/routes.rb
constructor-core-0.8.5 config/routes.rb
constructor-core-0.8.4 config/routes.rb
constructor-core-0.8.3 config/routes.rb