mirror of
https://github.com/feathersjs/feathers.git
synced 2025-12-08 19:46:22 +00:00
docs(guides): Highlight appropriate code lines regarding the context (#3232)
This commit is contained in:
parent
0f19e129d5
commit
8f29a02358
@ -60,7 +60,7 @@ app.service(messagePath).hooks({
|
||||
|
||||
Note that you can add hooks to a specific method as documented in the [hook registration API](../../api/hooks.md#registering-hooks). For example, to use the [profiling hook](./hook.md#profiling-example) only for `find` and `get` the registration can be updated like this:
|
||||
|
||||
```ts{8-9}
|
||||
```ts{12-13}
|
||||
import { profiler } from '../../hooks/profiler'
|
||||
// ...
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user