Routes that have parts in common can be grouped. Damn, I love Slim!
$app->group('/songs', function () use ($app, $container) {
$app->get('/', function () use ($app, $container) { ... }
$app->get('/xxx', function () use ($app, $container) { ... }
$app->get('/yyy', function () use ($app, $container) { ... }
}
Routes that have parts in common can be grouped. Damn, I love Slim!