Sha256: 2de60dfeca1879b9f91a37dd6908ad729dd63588bdd079ed709c835d50d5a697

Contents?: true

Size: 430 Bytes

Versions: 15

Compression:

Stored size: 430 Bytes

Contents

Rails.application.routes.draw do
  scope "(:locale)", locale: /#{I18n.available_locales.join("|")}/ do
    get 'signup', to: 'users#new', as: 'signup'
    get 'login', to: 'sessions#new', as: 'login'
    get 'logout', to: 'sessions#destroy', as: 'logout'

    resources :users do
      member do
        post :make_admin
        post :remove_admin
      end
    end
    resources :sessions
    resources :password_resets
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
tkh_authentication-0.1.8 config/routes.rb
tkh_authentication-0.9.2 config/routes.rb
tkh_authentication-0.9.1 config/routes.rb
tkh_authentication-0.9 config/routes.rb
tkh_authentication-0.1.7 config/routes.rb
tkh_authentication-0.1.6 config/routes.rb
tkh_authentication-0.1.5 config/routes.rb
tkh_authentication-0.1.3 config/routes.rb
tkh_authentication-0.1.2 config/routes.rb
tkh_authentication-0.1.1 config/routes.rb
tkh_authentication-0.1 config/routes.rb
tkh_authentication-0.0.12 config/routes.rb
tkh_authentication-0.0.11 config/routes.rb
tkh_authentication-0.0.10 config/routes.rb
tkh_authentication-0.0.9 config/routes.rb