1
0
Fork 0
oldhaven/config/routes.rb

19 lines
549 B
Ruby
Raw Normal View History

2011-04-03 16:21:05 +00:00
Beathaven::Application.routes.draw do
get "main/index"
root :to => "main#index", :as => "main"
2011-04-03 16:21:05 +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-13 01:59:45 +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-13 01:59:45 +00:00
match '*a', :to => 'errors#routing'
2011-04-03 16:21:05 +00:00
end