Files
CRM_Montzar/apps/api/src/health/health.controller.ts
T

16 lines
361 B
TypeScript

import { Controller, Get } from '@nestjs/common';
import type { HealthResponse } from '@mento/shared';
import { brand } from '@mento/shared';
@Controller('health')
export class HealthController {
@Get()
getHealth(): HealthResponse {
return {
status: 'ok',
service: `${brand.id}-api`,
timestamp: new Date().toISOString(),
};
}
}