1
0
Fork 0
find-us-lunch/config/routes.rb

12 lines
409 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 :home, only: [ :show ]
resources :friendships, only: [ :index, :show, :create, :destroy ]
resources :sessions, only: [ :create, :destroy ]
resources :users, only: [ :index, :show ]
root to: 'home#show'
end