Open maybephilipp opened 3 months ago
UPD:
So the issue is because I had routes defined in the following order:
GET /twitter/authenticate
GET /:socialType/callback
In my point of view the logic must be the following: if there is exact match - use it, otherwise - use wildcard.
I've investigated the root cause of it and updated implementation to support such cases. I will open a PR soon.
The following issue seems to be the same kind of issue: https://github.com/steambap/koa-tree-router/issues/19
@steambap Please review this PR at your convenience. Let me know if you have any concerns/additions. I will publish & use my own version for now. Thanks!
For anyone who want to try the version of pkg with the fix, install: @ogc/koa-tree-router
Hello! Thank you for this package!
I have an issue defining two subpaths for single-wildcarded route prefix:
The router throws:
Error: wildcard route ':socialType' conflicts with existing children in path '/api/auth/:socialType/bar'
What am I doing wrong?