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
This is how the original library work - you can look at its more complete documentation.
This won't change in this fork, which is mainly there for bug fixes and maintenance purposes.
You need to place your most specific handlers first, and the most generic one after, when they both work on the same HTTP method.
My guess it to allow some features to work in the framework.
It also allow to be compliant with REST API standard with just a simple handler:
GET /api/user/1234 PUT /api/user/1234
etc
Where the handler would only be in GET /api/user and then the handler would read the user id from the URI.
if you do
And then make a request to "/foo/bar", you hit the first handler.
AsyncCallbackWebHandler
andAsyncCallbackJsonWebHandler
both have this in them:Which is the offending line. Why on earth is it doing a
startsWith
?We have regex and wildcard routing capabilities. I've not rummaged in Git history, is this a hangover from a previous, less powerful routing feature?
The text was updated successfully, but these errors were encountered: