bramus/router

mount vars

aminpypc opened this issue · 1 comments

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 ???

aolko commented

exactly, @bramus, will there be a fix for that?