Dietrec::Application.routes.draw do
  resources :weights


  root :to => 'home#index'

  resources :foods

  resource :session, only: [:new, :create, :destroy]

  #OmniAuth
  match '/auth/:provider/callback' => 'sessions#create'
  match '/auth/failure' => 'sessions#failure'
  match '/logout' => 'sessions#destroy', :as => :logout
end
