15 lines
316 B
TypeScript
15 lines
316 B
TypeScript
import { Controller, Get } from '@nestjs/common';
|
|
import type { HealthResponse } from '@mento/shared';
|
|
|
|
@Controller('health')
|
|
export class HealthController {
|
|
@Get()
|
|
getHealth(): HealthResponse {
|
|
return {
|
|
status: 'ok',
|
|
service: 'mento-api',
|
|
timestamp: new Date().toISOString(),
|
|
};
|
|
}
|
|
}
|