7 lines
225 B
Ruby
7 lines
225 B
Ruby
|
class PlaylistController < ApplicationController
|
||
|
def data
|
||
|
@playlist = Playlist.find_by_id(params[:id])
|
||
|
render json: @playlist, include: { playlist_items: { include: { track: { include: { artists: {} }}}}}
|
||
|
end
|
||
|
end
|