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

Can't catch all requests with /.* #113

Closed
mort3za opened this issue Jul 26, 2016 · 1 comment
Closed

Can't catch all requests with /.* #113

mort3za opened this issue Jul 26, 2016 · 1 comment

Comments

@mort3za
Copy link

mort3za commented Jul 26, 2016

I want to add a route after all other routes to catch any unmatched routes. Just tested $r->addRoute('GET', '/.*', 'handler_end'); and many other regex strings but none of them worked.

Any suggestion?

@bwoebi
Copy link
Contributor

bwoebi commented Jul 26, 2016

You have to include it in brackets with a parameter name: '/{path:.*}'

@mort3za mort3za closed this as completed Jul 26, 2016
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