import { Request, Response } from "express"; import { HealthService } from "../services/HealthService"; import { BaseController } from "./BaseController"; export class HealthController extends BaseController { constructor(private readonly healthService: HealthService) { super(); this.get("/health", this.health); } async health(_req: Request, res: Response) { const health = await this.healthService.health(); res.status(health.status); return health.details; } }