From 64fec1af7469fc2834893a63c049fc969701f8f4 Mon Sep 17 00:00:00 2001 From: gballan1 Date: Mon, 28 Nov 2016 23:29:03 -0500 Subject: [PATCH] Fixed album song change over --- app/routes/apiv1/music.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/apiv1/music.php b/app/routes/apiv1/music.php index 07f4e3d..9774fac 100644 --- a/app/routes/apiv1/music.php +++ b/app/routes/apiv1/music.php @@ -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();