10 lines
296 B
Ruby
10 lines
296 B
Ruby
Rails.application.routes.draw do
|
|
get 'auth/:provider/callback', to: 'sessions#create'
|
|
get 'auth/failure', to: redirect('/')
|
|
get 'logout', to: 'sessions#destroy', as: 'logout'
|
|
|
|
resources :sessions, only: [ :create, :destroy ]
|
|
resources :home, only: [ :show ]
|
|
|
|
root to: 'home#show'
|
|
end
|