-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
🐛 [Bug]: Naming of routes works wrong #2685
Comments
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
I think this is related to #2671 |
yes, related, but issue #2671 has test (i saw it). And this test is also has problems. It adds some name, after it asserts, then again add name -> assert. But if you add all the names before, and then assert all, you will get unpredictable result, cos name adding affect all names previously added. |
and also, I didn't make an issue, but when you mount app as subApp, then mount also drops names of routes (when listen started). |
Bug Description
Naming of routes with the same path and different methods works wrong.
All routes with the same path are replaced with new given name.
How to Reproduce
Steps to reproduce the behavior:
Expected Behavior
Expected that path will be "/users" with no error:
Fiber Version
v2.50.0
Code Snippet (optional)
Checklist:
The text was updated successfully, but these errors were encountered: