Skip to content

Commit 293188d

Browse files
committed
feat(context): add support for method interceptors
- introduce `@intercept` for classes and/or methods - enable `invokeMethod()` to execute interceptors - add support for global interceptors - add acceptance tests to illustrate how to use interceptors - apply global interceptors for handler routes - allow proxies to be created or injected to apply interceptors - update docs for interceptors - introduce AsyncProxy type for proxy with async interceptors - allow global interceptors to be sorted by group
1 parent af06b69 commit 293188d

19 files changed

+2471
-26
lines changed

docs/site/Concepts.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ LoopBack 4 introduces some new concepts that are important to understand:
3737
Controller operates only on processed input and abstractions of backend
3838
services / databases.
3939

40+
- [**Interceptors**](Interceptors.md): A function that intercepts static or
41+
instance method invocations on a class or object.
42+
4043
- [**Route**](Routes.md): The mapping between your API specification and an
4144
Operation. It tells LoopBack which Operation to `invoke()` when given an HTTP
4245
request.

0 commit comments

Comments
 (0)