Fixed album song change over
This commit is contained in:
parent
edccbdade1
commit
64fec1af74
@ -29,7 +29,7 @@ $app->get('/apiv1/music/album-songs/:albumid', function($albumid) use($app) {
|
|||||||
$album = $app->album->where('id', $albumid)->first();
|
$album = $app->album->where('id', $albumid)->first();
|
||||||
|
|
||||||
if ($album) {
|
if ($album) {
|
||||||
$json = [songs => $album->songs()];
|
$json = ['songs' => $album->songs()];
|
||||||
echo json_encode($json);
|
echo json_encode($json);
|
||||||
} else {
|
} else {
|
||||||
$app->notFound();
|
$app->notFound();
|
||||||
|
Loading…
Reference in New Issue
Block a user