-
Notifications
You must be signed in to change notification settings - Fork 421
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
Nested routes serve routes on all nested paths #3243
Comments
/bounty $100 |
💎 $100 bounty • ZIOSteps to solve:
Thank you for contributing to zio/zio-http! Add a bounty • Share on socials
|
I couldn't reproduce it in the main branch, it seems that this issue was fixed in this PR #3121 |
closed by #3121 |
Hi @987Nabil I noticed that this issue was recently reopened after a fix attempt. Is this issue still open for contributions? I would love to work on it if possible. Thank |
/attempt #3243 Options |
💡 @deekshatomer submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
Describe the bug
The feature of nesting routes is exposing paths on both the original path, and on the nested path.
https://zio.dev/zio-http/reference/routing/routes#nested-routes
To Reproduce
I found it by curl-ing my app, but here is a reproducer using both the direct request syntax and calling the server directly
Expected behaviour
Only the requests to
fooHello
respond with 200 OK, with the requests tohello
giving 404.The text was updated successfully, but these errors were encountered: