oldhaven/config/routes.rb
Hipster Hitman 3bb393bbc7 Merge branch 'master' of github.com:magnolia-fan/BeatHaven
Conflicts:
	config/routes.rb
2011-04-28 03:24:41 +04:00

29 lines
775 B
Ruby

Beathaven::Application.routes.draw do
get "bot/list"
get "bot/stats"
match "bot/queue/" => "bot#queue"
match "bot/start/:name" => "bot#start"
match "bot/stop/:name" => "bot#stop"
match "bot/add/:name" => "bot#add"
get "main/index"
root :to => "main#index", :as => "main"
match 'artist(/:name)' => 'artist#view'
match 'listen/:id' => 'track#listen'
match 'search/autocomplete' => 'artist#autocomplete'
# Registration & login
match 'reg/:email/:code' => 'user#register', :constraints => { :email => /[-a-z0-9\._@]+/i, :code => /[a-f0-9]{64}/ }
match 'reg/complete' => 'user#complete'
match 'login' => 'user#login'
match 'user/profile' => 'user#update'
match 'user/invite' => 'user#invite'
match '*a', :to => 'errors#routing'
end