feat(api): add health check endpoints with @nestjs/terminus
Add HealthModule with /health (liveness) and /ready (readiness) probes. Readiness checks DB (Prisma) and Redis connectivity. Replaces the basic /health endpoint in AppController. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -6,9 +6,4 @@ export class AppController {
|
||||
root() {
|
||||
return { status: 'ok', service: 'goodgo-api' };
|
||||
}
|
||||
|
||||
@Get('health')
|
||||
healthCheck() {
|
||||
return { status: 'ok', service: 'goodgo-api', timestamp: new Date().toISOString() };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user