Skip to content

Instantly share code, notes, and snippets.

@Carpetfizz
Last active December 30, 2016 06:36
Show Gist options
  • Save Carpetfizz/05fa4a00b89fd57a78f0327b48280bc7 to your computer and use it in GitHub Desktop.
Save Carpetfizz/05fa4a00b89fd57a78f0327b48280bc7 to your computer and use it in GitHub Desktop.
Rails.application.routes.draw do
get 'login', to: redirect('/auth/google_oauth2'), as: 'login'
get 'logout', to: 'sessions#destroy', as: 'logout'
get 'auth/:provider/callback', to: 'sessions#create'
get 'auth/failure', to: redirect('/')
get 'home', to: 'home#show'
get 'me', to: 'me#show', as: 'me'
root to: "home#show"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment