Closed RiceWithMeat closed 1 day ago
I may be wrong, but that's how routers work, it's called route priority - https://stackoverflow.com/questions/32603818/order-of-router-precedence-in-express-js
@zeroqs yes you are right but we can do it instead of the users and improve their development experience
Now such similar requests have the following problem. If a request with a parameter comes before a request without parameter, then in response to the request without parameters the response for the request with the parameter is sent.
If it's the other way around, then everything works as it should.