Last active
December 30, 2016 06:36
-
-
Save Carpetfizz/05fa4a00b89fd57a78f0327b48280bc7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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