Skip to content

Commit fddd450

Browse files
mbaer3000typicode
authored andcommitted
fix middlewares example (typicode#385)
1 parent 8f484cd commit fddd450

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,10 @@ Now you can access resources using additional routes.
269269
You can add your middlewares from the CLI using `--middlewares` option:
270270

271271
```js
272-
// first.js
272+
// hello.js
273273
module.exports = function (req, res, next) {
274274
res.header('X-Hello', 'World')
275+
next()
275276
}
276277
```
277278

0 commit comments

Comments
 (0)