Skip to content

Commit ed95beb

Browse files
Merge pull request #1979 from dalejodc/imports-terminus-example
docs(terminus): add imports to Terminus health check code example
2 parents ad6f3dc + 5c0d238 commit ed95beb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

content/recipes/terminus.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ Once we have installed `@nestjs/terminus`, imported our `TerminusModule` and cre
5858

5959
```typescript
6060
@@filename(health.controller)
61+
import { Controller, Get } from '@nestjs/common';
62+
import { HealthCheckService, HttpHealthIndicator, HealthCheck } from '@nestjs/terminus';
63+
6164
@Controller('health')
6265
export class HealthController {
6366
constructor(
@@ -74,6 +77,9 @@ export class HealthController {
7477
}
7578
}
7679
@@switch
80+
import { Controller, Get } from '@nestjs/common';
81+
import { HealthCheckService, HttpHealthIndicator, HealthCheck } from '@nestjs/terminus';
82+
7783
@Controller('health')
7884
@Dependencies(HealthCheckService, HttpHealthIndicator)
7985
export class HealthController {

0 commit comments

Comments
 (0)