16 lines
317 B
TypeScript
16 lines
317 B
TypeScript
import { Controller, Get } from '@nestjs/common';
|
|
import { ApiTags } from '@nestjs/swagger';
|
|
|
|
@ApiTags('health')
|
|
@Controller('health')
|
|
export class HealthController {
|
|
@Get()
|
|
getHealth() {
|
|
return {
|
|
status: 'ok',
|
|
service: 'cmpp-platform-api',
|
|
timestamp: new Date().toISOString(),
|
|
};
|
|
}
|
|
}
|