Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mount vars #178

Open
aminpypc opened this issue May 1, 2022 · 1 comment
Open

mount vars #178

aminpypc opened this issue May 1, 2022 · 1 comment

Comments

@aminpypc
Copy link

aminpypc commented May 1, 2022

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
Copy link

aolko commented Jan 24, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants