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 '*a', :to => 'errors#routing' end