Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (15 sloc) 539 Bytes
Pong::Application.routes.draw do
devise_for :admins, :controllers => { :omniauth_callbacks => "admins/sessions" }
devise_scope :admin do
match '/admins/auth/google/callback' => 'admins/sessions#callback'
get '/admins/sign_out' => 'devise/sessions#destroy'
end
resources :matches
resources :players
match '/distribution' => 'players#distribution', :as => 'distribution'
scope "/api" do
match "players" => "players#api_index"
match "rankings" => "players#rankings"
end
root to: 'players#rankings'
end