Implement playlists/create action for API

This commit is contained in:
Thibault Jouan
2012-03-19 02:23:48 +00:00
parent f8ed140af1
commit df6d4991f8
5 changed files with 51 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
Scube::Application.routes.draw do
namespace :api do
resources :playlists, :only => [:index]
resources :playlists, :only => [:index, :create]
resources :sessions, :only => [:create]
match '*all' => 'application#cor_preflight', :via => :options