website/app/routes/music.php

12 lines
161 B
PHP
Raw Normal View History

2015-08-30 12:34:43 -04:00
<?php
2015-08-30 12:34:43 -04:00
$app->get('/music', function() use($app) {
2016-04-20 23:11:33 -04:00
$albums = $app->album->all();
$app->render('music.twig', [
'albums' => $albums,
]);
2015-08-30 12:34:43 -04:00
})->name('music');