panique / mini2

Just an extremely simple naked PHP application, useful for small projects and quick prototypes.
MIT License
416 stars 102 forks source link

[improvement] grouping routes #31

Closed panique closed 9 years ago

panique commented 9 years ago

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) { ... }

}
panique commented 9 years ago

done