Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 25 lines (16 sloc) 0.704 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
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
Something went wrong with that request. Please try again.