* Add User model * Add SessionsController * Add password authentication on User * Request authentication for all actions except sign in * Add some helpers for ApplicationController * Update features to work with mandatory authentication
11 lines
200 B
Ruby
11 lines
200 B
Ruby
Scube::Application.routes.draw do
|
|
resources :sessions, :only => [:new, :create]
|
|
|
|
resources :tracks do
|
|
get 'stream', :on => :member
|
|
end
|
|
resources :playlists
|
|
|
|
root :to => 'home#index'
|
|
end
|