Fix name of playlist resource
This commit is contained in:
parent
1ab04638e3
commit
d8b7c0750a
|
@ -2834,7 +2834,7 @@ get "/api/v1/playlists/:plid" do |env|
|
||||||
response = JSON.build do |json|
|
response = JSON.build do |json|
|
||||||
json.object do
|
json.object do
|
||||||
json.field "title", playlist.title
|
json.field "title", playlist.title
|
||||||
json.field "id", playlist.id
|
json.field "playlistId", playlist.id
|
||||||
|
|
||||||
json.field "author", playlist.author
|
json.field "author", playlist.author
|
||||||
json.field "authorId", playlist.ucid
|
json.field "authorId", playlist.ucid
|
||||||
|
@ -2852,7 +2852,7 @@ get "/api/v1/playlists/:plid" do |env|
|
||||||
videos.each do |video|
|
videos.each do |video|
|
||||||
json.object do
|
json.object do
|
||||||
json.field "title", video.title
|
json.field "title", video.title
|
||||||
json.field "id", video.id
|
json.field "videoId", video.id
|
||||||
|
|
||||||
json.field "author", video.author
|
json.field "author", video.author
|
||||||
json.field "authorId", video.ucid
|
json.field "authorId", video.ucid
|
||||||
|
|
Loading…
Reference in a new issue