I am having a bit of trouble with the routing.
I\'m working on a CMS, and i need two primary routes. /admin and /(:any). The admin
This solution works fine on Laravel 5:
Route::get('/admin', function () {
// url /admin
});
Route::get('/{any}', function ($any) {
// any other url, subfolders also
})->where('any', '.*');
This is for Lumen instead:
$app->get('/admin', function () use ($app) {
//
});
$app->get('/{any:.*}', function ($any) use ($app) {
//
});