Created
June 22, 2013 02:47
-
-
Save DaveSanders/5835642 to your computer and use it in GitHub Desktop.
code example for omniauth routes.
This file contains 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
namespace :api, defaults: {format: 'json'} do | |
namespace :v1 do | |
devise_for :users | |
get '/auth/:provider/callback', to: 'oauth#create' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment