-
koa deprecated Support for generators will be removed in v3. See the documentation for examples of how to convert old middleware https://github.com/koajs/koa/blob/master/docs/migration.md src/index.js…
-
`notFound` option does not respect router prefix.
It is called for **any** non-matched path, regardless of the prefix, meaning it can't be used if there are several routers under different prefixes…
-
Think about the current version vs koa middleware, we've implemented it as an array and it make confusing and chaos here, I think koa middleware is a classic model looks simple and easily to use.
…
-
1. It doesn't really belong to the network layer. It's just a mean to support the "batching protocol" that should be separated from the rest.
1. Not everybody use `express`. I use `koa` and I made […
-
Hi :wave:!
Is there any way to apply a middleware to every route of a router?
This would be the same as calling [Router.use](https://github.com/ZijianHe/koa-router#module_koa-router--Router+use) w…
-
In https://github.com/koajs/koala/issues/19#issuecomment-324023866, @nfantone suggested we replace the middlewares [here](https://github.com/koajs/koala/tree/master/lib/middleware) can be replaced wit…
-
本文分为四个部分,分别对应源码的四个文件。
- [koa源码分析(一) - application.js](https://github.com/brunoyang/blog/issues/5)
- [koa源码分析(二) - context.js](https://github.com/brunoyang/blog/issues/6)
- [koa源码分析(三) - request.js](ht…
-
Hi,
while working with your router, I came up with the following type declaration:
```typescript
declare module "koa-router-ajv-swaggergen" {
import KoaRouter from "@koa/router"
imp…
-
This return 'Not called' body
``` javascript
const app = new (require('koa'))();
const router = require('koa-router')();
app.use((ctx, next) => {
ctx.body = 'Not called';
return next();
});
ro…
-
## Current behavior
Registering a middleware with a given path (for example `/a`) and a wildcard path (`*`) on the same Router instance will cause the wildcard middleware handler to not be called i…