Correct response body for getSongsByGenre
This commit is contained in:
@@ -168,7 +168,7 @@ func (c *AlbumListController) GetSongsByGenre(w http.ResponseWriter, r *http.Req
|
|||||||
}
|
}
|
||||||
|
|
||||||
response := NewResponse()
|
response := NewResponse()
|
||||||
response.RandomSongs = &responses.Songs{}
|
response.SongsByGenre = &responses.Songs{}
|
||||||
response.RandomSongs.Songs = ToChildren(r.Context(), songs)
|
response.SongsByGenre.Songs = ToChildren(r.Context(), songs)
|
||||||
return response, nil
|
return response, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user