Fixed album song change over

This commit is contained in:
gballan1 2016-11-28 23:29:03 -05:00
parent edccbdade1
commit 64fec1af74

View File

@ -29,7 +29,7 @@ $app->get('/apiv1/music/album-songs/:albumid', function($albumid) use($app) {
$album = $app->album->where('id', $albumid)->first();
if ($album) {
$json = [songs => $album->songs()];
$json = ['songs' => $album->songs()];
echo json_encode($json);
} else {
$app->notFound();