2011-04-03 16:21:05 +00:00
|
|
|
Beathaven::Application.routes.draw do
|
2011-04-27 23:18:06 +00:00
|
|
|
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"
|
|
|
|
|
2011-04-09 13:02:28 +00:00
|
|
|
get "main/index"
|
|
|
|
|
|
|
|
root :to => "main#index", :as => "main"
|
2011-04-03 16:21:05 +00:00
|
|
|
|
2011-04-09 13:02:28 +00:00
|
|
|
match 'artist(/:name)' => 'artist#view'
|
2011-04-10 06:17:06 +00:00
|
|
|
match 'listen/:id' => 'track#listen'
|
|
|
|
match 'search/autocomplete' => 'artist#autocomplete'
|
2011-04-27 23:18:06 +00:00
|
|
|
|
2011-04-13 03:34:56 +00:00
|
|
|
# Registration & login
|
2011-04-13 04:42:44 +00:00
|
|
|
match 'reg/:email/:code' => 'user#register', :constraints => { :email => /[-a-z0-9\._@]+/i, :code => /[a-f0-9]{64}/ }
|
2011-04-13 03:34:56 +00:00
|
|
|
match 'reg/complete' => 'user#complete'
|
2011-04-13 04:42:44 +00:00
|
|
|
match 'login' => 'user#login'
|
2011-04-15 20:09:17 +00:00
|
|
|
match 'user/profile' => 'user#update'
|
2011-04-16 09:06:23 +00:00
|
|
|
match 'user/invite' => 'user#invite'
|
2011-04-27 23:18:06 +00:00
|
|
|
|
2011-04-13 01:59:45 +00:00
|
|
|
match '*a', :to => 'errors#routing'
|
2011-04-03 16:21:05 +00:00
|
|
|
end
|
2011-04-09 13:02:28 +00:00
|
|
|
|