Guest User

Untitled

a guest
Jul 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. Illup::Application.routes.draw do
  2. # customize user namespace
  3. devise_for :users, :path_names => {
  4. :sign_up => 'new',
  5. :sign_in => 'login',
  6. :sign_out => 'logout',
  7. :password => 'secret',
  8. :confirmation => 'verification',
  9. :unlock => 'unlock',
  10. }
  11. namespace :users do
  12. resources :blogs
  13. resources :comments
  14. resources :messages
  15. resources :peeps
  16. resource :cart
  17. end
  18. # 3rd-party authentication
  19. match '/auth/:provider/callback' => 'authentications#create'
  20. resources :authentications
  21.  
  22. # artist namespace
  23. resources :artists do
  24. get 'artists/register' => 'artists#new'
  25. get ':name' => 'artists#show'
  26. resources :tracks do
  27. post :rate
  28. end
  29. resources :lyrics
  30. resources :blogs
  31. resources :messages
  32. resources :peeps
  33. end
  34.  
  35. # top-rated media
  36. get 'toprated/index'
  37. get 'toprated/tracks'
  38. get 'toprated/beats'
  39. get 'toprated/lyrics'
  40. get 'toprated/videos'
  41. get 'toprated/blogs'
  42. get 'toprated/contests'
  43. get 'toprated/photos'
  44.  
  45. # static pages
  46. #match '/:page' => 'pages#show'
  47.  
  48. # automatically go to splash page for unauthenticated users
  49. root :to => 'pages#register'
  50. end
Add Comment
Please, Sign In to add comment