Bot controller

This commit is contained in:
Hipster Hitman
2011-04-28 03:18:06 +04:00
parent 91b14bf524
commit 6809623b02
13 changed files with 350 additions and 2 deletions
+11 -2
View File
@@ -1,4 +1,13 @@
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"
@@ -6,12 +15,12 @@ Beathaven::Application.routes.draw do
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 '*a', :to => 'errors#routing'
end