2026-08-29 21:06:30 +03:30
|
|
|
import { Controller, Get } from '@nestjs/common';
|
|
|
|
|
import type { HealthResponse } from '@mento/shared';
|
2026-09-07 11:49:54 +03:30
|
|
|
import { brand } from '@mento/shared';
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
|
|
|
@Controller('health')
|
|
|
|
|
export class HealthController {
|
|
|
|
|
@Get()
|
|
|
|
|
getHealth(): HealthResponse {
|
|
|
|
|
return {
|
|
|
|
|
status: 'ok',
|
2026-09-07 11:49:54 +03:30
|
|
|
service: `${brand.id}-api`,
|
2026-08-29 21:06:30 +03:30
|
|
|
timestamp: new Date().toISOString(),
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|