Skip to content

Instantly share code, notes, and snippets.

@DaveSanders
Created June 22, 2013 02:47
Show Gist options
  • 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