Skip to content

Instantly share code, notes, and snippets.

@DaveSanders
Created June 22, 2013 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DaveSanders/5835642 to your computer and use it in GitHub Desktop.
Save DaveSanders/5835642 to your computer and use it in GitHub Desktop.
code example for omniauth routes.
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