Skip to content

Commit

Permalink
Improve Fastify plugin documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
puzpuzpuz committed Jun 12, 2020
1 parent 844bea5 commit 7f8bc41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ fastify.register(rTracer.fastifyPlugin)
// all code in plugins or handlers, starting from here, has access to request ids
```

Obtain request id in middlewares on the incoming request:
Obtain request id in handlers on the incoming request:

```javascript
// an example middleware for a generic find entity endpoint
// an example handler for a generic find entity endpoint
// router config is skipped for the sake of simplicity
app.get('/test', async (request, reply) => {
const entity = await entityService.find(request.params.id)
Expand Down

0 comments on commit 7f8bc41

Please sign in to comment.