Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (16 sloc) 0.704 kB
SoundCloudCompetition::Application.routes.draw do
resources :competitions
resources :tracks do
get '/page/:page', :action => :index, :on => :collection
end
match "/admin" => 'competitions#edit', :id => 1, :as => :admin
match "/tracks/:id/favorite" => 'tracks#favorite', :as => :favorite_track
match "/submit" => 'tracks#new'
match "/record" => 'tracks#record'
match "/votes" => 'votes#create', :via => :post
match "/comments" => 'comments#create', :via => :post
match "/login" => 'sessions#new', :as => :login
match "/logout" => 'sessions#destroy', :as => :logout
match "/auth/soundcloud/callback" => "sessions#create"
root :to => 'competitions#show', :id => 1
end
Jump to Line
Something went wrong with that request. Please try again.