Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Illup::Application.routes.draw do
- # customize user namespace
- devise_for :users, :path_names => {
- :sign_up => 'new',
- :sign_in => 'login',
- :sign_out => 'logout',
- :password => 'secret',
- :confirmation => 'verification',
- :unlock => 'unlock',
- }
- namespace :users do
- resources :blogs
- resources :comments
- resources :messages
- resources :peeps
- resource :cart
- end
- # 3rd-party authentication
- match '/auth/:provider/callback' => 'authentications#create'
- resources :authentications
- # artist namespace
- resources :artists do
- get 'artists/register' => 'artists#new'
- get ':name' => 'artists#show'
- resources :tracks do
- post :rate
- end
- resources :lyrics
- resources :blogs
- resources :messages
- resources :peeps
- end
- # top-rated media
- get 'toprated/index'
- get 'toprated/tracks'
- get 'toprated/beats'
- get 'toprated/lyrics'
- get 'toprated/videos'
- get 'toprated/blogs'
- get 'toprated/contests'
- get 'toprated/photos'
- # static pages
- #match '/:page' => 'pages#show'
- # automatically go to splash page for unauthenticated users
- root :to => 'pages#register'
- end
Add Comment
Please, Sign In to add comment