Router middleware for Koa. Maintained by Forward Email and Lad.
- Express-style routing (
app.get,app.put,app.post, etc.) - Named URL parameters
- Named routes with URL generation
- Match routes with specific host
- Responds to
OPTIONSrequests with allowed methods - Support for
405 Method Not Allowedand501 Not Implemented - Multiple route middleware
- Multiple and nestable routers
async/awaitsupport
- The API has changed to match the new promise-based middleware signature of koa 2. See the koa 2.x readme for more information.
- Middleware is now always run in the order declared by
.use()(or.get(), etc.), which matches Express 4 API.
npm:
npm install @koa/routernpm install --save-dev @types/koa__routerSee API Reference for more documentation.
| Name |
|---|
| Alex Mingoia |
| @koajs |
| Imed Jaberi |
MIT © Alex Mingoia