2012-05-18 13:54:48 +00:00
|
|
|
module ExtraRoutes
|
|
|
|
def add(map)
|
|
|
|
|
|
|
|
# omniauth
|
|
|
|
map.match '/auth/:provider/callback', :to => 'sessions#create_omniauth'
|
2012-11-22 14:40:36 +00:00
|
|
|
|
2013-02-17 18:28:32 +00:00
|
|
|
# sso
|
|
|
|
map.match '/auth/sso', :to => 'sessions#create_sso'
|
|
|
|
|
2012-05-18 13:54:48 +00:00
|
|
|
# sessions
|
|
|
|
map.match '/signin', :to => 'sessions#create'
|
|
|
|
map.match '/signshow', :to => 'sessions#show'
|
|
|
|
map.match '/signout', :to => 'sessions#destroy'
|
2012-11-22 14:40:36 +00:00
|
|
|
|
2012-05-18 13:54:48 +00:00
|
|
|
end
|
|
|
|
module_function :add
|
|
|
|
end
|