Fixed album changing process

This commit is contained in:
gballan1
2016-11-28 23:47:11 -05:00
parent 64fec1af74
commit 78eb16d137
2 changed files with 15 additions and 10 deletions

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();