16 lines
361 B
TypeScript
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(),
|
|
};
|
|
}
|
|
}
|