Skip to content

Commit

Permalink
docs: tip to intercept all queries
Browse files Browse the repository at this point in the history
Share a workaround to intercept all requests

re #6099

Signed-off-by: quentin <31855566+QPierre1@users.noreply.github.com>
Co-authored-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
  • Loading branch information
Quent1Pr and achrinza committed Dec 16, 2020
1 parent e868208 commit ff4f4cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/site/Interceptor.md
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ The registration can be further simplified as:
app.interceptor(MetricsInterceptorProvider, {global: true, group: 'metrics'});
```

{% include tip.html content="If you need to intercept all requests, including these destinated to a LB3-mounted app, you can use a [LoopBack Middleware](./Middleware.md#loopback-style-middleware)." %}

### Order of invocation for interceptors

Multiple `@intercept` decorators can be applied to a class or a method. The
Expand Down

0 comments on commit ff4f4cc

Please sign in to comment.