Closed justin-caldicott closed 1 year ago
Given the following routes:
/users/[id] /users
When making a request to /users we would expect the /users route to be resolved.
/users
However the /users/[id] route is resolved. It tests this route first, and index === routeSplit.length - 1 evaluates to true.
/users/[id]
index === routeSplit.length - 1
Thank you, it has been published on npm
Given the following routes:
When making a request to
/users
we would expect the/users
route to be resolved.However the
/users/[id]
route is resolved. It tests this route first, andindex === routeSplit.length - 1
evaluates to true.