Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (15 sloc) 0.539 kb
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
Jump to Line
Something went wrong with that request. Please try again.