Files
goodgo-platform/apps/api/src/app.controller.ts
Ho Ngoc Hai 801e29e65c 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>
2026-04-09 00:33:44 +07:00

10 lines
172 B
TypeScript

import { Controller, Get } from '@nestjs/common';
@Controller()
export class AppController {
@Get()
root() {
return { status: 'ok', service: 'goodgo-api' };
}
}