Rails.application.routes.draw do
  root to: 'sessions#new'
  get '/login' => 'sessions#new'
  post '/login' => 'sessions#create'
  get '/logout' => 'sessions#destroy'

  resources :users do
    patch 'update_password', on: :member
  end
  resources :organizations
end
