Fixed music routes
This commit is contained in:
parent
969c1a850a
commit
89e51e2da7
@ -6,7 +6,7 @@ $app->get('/music1', function() use($app) {
|
|||||||
$albums = $app->album->all()->sortByDesc('release_date')->values()->all();
|
$albums = $app->album->all()->sortByDesc('release_date')->values()->all();
|
||||||
$songs = $albums[0]->songs;
|
$songs = $albums[0]->songs;
|
||||||
|
|
||||||
$app->render('music.twig', [
|
$app->render('music1.twig', [
|
||||||
'albums' => $albums,
|
'albums' => $albums,
|
||||||
'songs' => $songs,
|
'songs' => $songs,
|
||||||
]);
|
]);
|
||||||
@ -19,7 +19,7 @@ $app->get('/music2', function() use($app) {
|
|||||||
$albums = $app->album->all()->sortByDesc('release_date')->values()->all();
|
$albums = $app->album->all()->sortByDesc('release_date')->values()->all();
|
||||||
$songs = $albums[0]->songs;
|
$songs = $albums[0]->songs;
|
||||||
|
|
||||||
$app->render('music.twig', [
|
$app->render('music2.twig', [
|
||||||
'albums' => $albums,
|
'albums' => $albums,
|
||||||
'songs' => $songs,
|
'songs' => $songs,
|
||||||
]);
|
]);
|
||||||
|
Loading…
Reference in New Issue
Block a user