Closed wengeezhang closed 2 years ago
please check pr #148
We have just published @koajs/router
v11.0.0 which resolves this issue. This is mirrored to koa-router
as well.
https://github.com/koajs/router/releases/tag/v11.0.0
This project is maintained by Forward Email and Lad.
if you add handler like this:
you'll get an error like this:
The error message is less helpful for user to find the bug.
so it's better to check path before call register. if path not provide, just provide a clear error message like this: