Router middleware for Koa.
OPTIONSrequests with allowed methods
405 Method Not Allowedand
501 Not Implemented
.get(), etc.), which matches Express 4 API.
# npm .. npm i @koa/router # yarn .. yarn add @koa/router
Please submit all issues and pull requests to the koajs/router repository!
If you have any problem or suggestion please open an issue here.
This module is forked from the original koa-router due to its lack of activity.
koa-router is the most widely used router module in the Koa community and we need maintainers. If you're interested in fixing bugs or implementing new features feel free to open a pull request. We'll be adding active contributors as collaborators.
Thanks to the original authors @alexmingoia and the original team for their great work.