Skip to content

Instantly share code, notes, and snippets.

@rwehresmann
Last active August 25, 2019 14:21
Show Gist options
  • Select an option

  • Save rwehresmann/0267e71446dd649f1e2476eea8b001b4 to your computer and use it in GitHub Desktop.

Select an option

Save rwehresmann/0267e71446dd649f1e2476eea8b001b4 to your computer and use it in GitHub Desktop.
Rails.application.routes.draw do
namespace :admin do
resources :users do
post :login_as_user, on: :member
end
root to: 'users#index'
end
get 'auth/auth0', to: 'auth0#authentication', as: :authentication
get 'auth/auth0/callback', to: 'auth0#callback'
get 'auth/failure', to: 'auth0#failure'
post '/auth/logout', to: 'auth0#logout'
root 'home#index'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment