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
Route with parameters based on PCRE when using the getRoute() function #7
Comments
Hi @henry5059 I'll need to look into this, but this is not the expected behaviour |
Ok, thank you. |
Hi @henry5059, I just released a new version that fixes this issue (v0.2.3). You can run leaf install router or composer require leafs/router to fix the issue in your codebase. You should now see this when you run {
"pattern": "/users/(.*?)",
"path": "/users/1",
"method": "GET",
"name": "mycontroller",
"handler": "MyNamespace\\Controller@index",
"params": [
"1"
]
} |
excelent, thanks you. |
You can close this issue if the fix works for you |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I hope you are very well, to tell you that when writing the route with parameters based on PCRE when using the getRoute() function, it only returns what the image presents. Which I want you to do me the favor of explaining if it is a practice on my part or simply requires a new implementation of routes.
The text was updated successfully, but these errors were encountered: