Correct response body for getSongsByGenre
This commit is contained in:
parent
6f6b223453
commit
ae847103a2
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue