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

12 lines
371 B
Ruby
Raw Normal View History

2014-10-02 16:10:36 -04:00
Rails.application.routes.draw do
2014-10-02 16:35:55 -04:00
get 'auth/:provider/callback', to: 'sessions#create'
get 'auth/failure', to: redirect('/')
get 'logout', to: 'sessions#destroy', as: 'logout'
2014-10-02 16:10:36 -04:00
2014-10-02 16:35:55 -04:00
resources :home, only: [ :show ]
2014-10-15 13:32:35 -04:00
resources :friendships, only: [ :index, :show, :create, :new, :destroy ]
resources :sessions, only: [ :create, :destroy ]
2014-10-02 16:10:36 -04:00
2014-10-02 16:35:55 -04:00
root to: 'home#show'
2014-10-02 16:10:36 -04:00
end