We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80a834e commit e833a30Copy full SHA for e833a30
README.md
@@ -43,7 +43,8 @@ const Timeout = require('koa-better-timeout');
43
44
// ...
45
46
-app.use(new Timeout().middleware);
+const timeout = new Timeout();
47
+app.use(timeout.middleware.bind(timeout));
48
```
49
50
> Advanced middleware usage (e.g. using [Lad][] and its [@ladjs/i18n][ladjs-i18n] middleware) with translated response message:
0 commit comments