Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: be309b5772
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (23 sloc) 0.607 kB
OmniauthDemo::Application.routes.draw do
# Omniauth pure
match "/signin" => "services#signin"
match "/signout" => "services#signout"
match '/auth/:service/callback' => 'services#create'
match '/auth/failure' => 'services#failure'
resources :services, :only => [:index, :create, :destroy] do
collection do
get 'signin'
get 'signout'
get 'signup'
post 'newaccount'
get 'failure'
end
end
# used for the demo application only
resources :users, :only => [:index] do
collection do
get 'test'
end
end
root :to => "users#index"
end
Jump to Line
Something went wrong with that request. Please try again.