Rails.application.routes.draw do
  devise_for :users, :controllers => { :omniauth_callbacks => "users/omniauth_callbacks"}
  resources :users, only: [:show, :update] do
    member do
      post 'ascend'
    end
  end
  resources :portals
  resources :quests do
    member do 
      post 'join', 'leave'
      patch 'lackeys'
    end
  end
  resources :portals do
  	resources :quests, only: [:show, :new, :index]
  end

  namespace :god do
  	resources :users
  end
  root 'welcome#home'
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end
