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
|
|
|
|
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
|