1
0
Fork 0
oldhaven/app/controllers/playlist_controller.rb

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