Fixed music routes

This commit is contained in:
gballan1 2016-11-27 21:50:40 -05:00
parent 969c1a850a
commit 89e51e2da7

View File

@ -6,7 +6,7 @@ $app->get('/music1', function() use($app) {
$albums = $app->album->all()->sortByDesc('release_date')->values()->all();
$songs = $albums[0]->songs;
$app->render('music.twig', [
$app->render('music1.twig', [
'albums' => $albums,
'songs' => $songs,
]);
@ -19,7 +19,7 @@ $app->get('/music2', function() use($app) {
$albums = $app->album->all()->sortByDesc('release_date')->values()->all();
$songs = $albums[0]->songs;
$app->render('music.twig', [
$app->render('music2.twig', [
'albums' => $albums,
'songs' => $songs,
]);