Sha256: 92ae132559356e366c36230203a2a3a493900af30f8f4129a2d0c2b68b895eb0

Contents?: true

Size: 475 Bytes

Versions: 7

Compression:

Stored size: 475 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
      collection { post :detect_existence }
    end
    resources :sessions
    resources :password_resets
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tkh_authentication-0.9.6 config/routes.rb
tkh_authentication-0.9.5 config/routes.rb
tkh_authentication-0.9.4 config/routes.rb
tkh_authentication-0.9.3 config/routes.rb
tkh_authentication-0.1.11 config/routes.rb
tkh_authentication-0.1.10 config/routes.rb
tkh_authentication-0.1.9 config/routes.rb