You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Amazing idea 🚀
I think we could create our own Request and Response interfaces too (even if they just extend express), so users wouldn't be aware of express complexity and interfaces :)
Problem
Routes must follow a precedence definition when adding them to express.
The second api will never match because the dynamic
id
key will matchdance
. So in order to solve this, the routes must be defined as such:Proposal
Maybe we should automatically sort the routes by their path definition, giving precedence to not dynamic path keys.
Pros
Cons
Route#path
to be a function instead of string.The text was updated successfully, but these errors were encountered: