1
0
Fork 0
oldhaven/config/routes.rb

19 lines
549 B
Ruby

Beathaven::Application.routes.draw do
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 '*a', :to => 'errors#routing'
end