In Laravel I have for example:
Route::get( '/produtos/mostra/{id}',
'ProdutoController@mostra'
)->where('id', '[0-9]+');
How would this type of validation be done in Lumen ? Since a route is caused by $app
:
$app->get('insert', function () {
});