mount vars
aminpypc opened this issue · comments
Mohammad amin Salmani commented
success:
$router->mount('/video', function () use ($router) {
$router->get('/([\w_\d]+)', function ($id) {
echo 'video '.$id;
});
});
error:
$router->mount('/video/([\w_\d]+)', function ($id) use ($router) {
$router->get('/', function () use ($id) {
echo 'video '.$id;
});
});
why ???