Implements playlists/index action in JSON API

This commit is contained in:
Thibault Jouan
2012-02-26 11:33:43 +00:00
parent 5145717a3c
commit 88d3242843
3 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
class Api::V0::PlaylistsController < ApplicationController
respond_to :json
def index
@playlists = Playlist.all
respond_with @playlists
end
end