Coding task · NestJS course · Module 6: Error Handling and Monitoring

Health Check Controller

Create a HealthController with a GET /health endpoint that checks the database

Task

Complete the HealthController with @Get('/health') that uses HealthCheckService.check() with TypeOrmHealthIndicator.pingCheck('database') and HttpHealthIndicator.pingCheck('api', 'http://localhost:4000')