17 lines
509 B
TypeScript
17 lines
509 B
TypeScript
import { Controller, Get } from '@nestjs/common';
|
|
import { ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
|
|
|
|
@ApiTags('Saude')
|
|
@Controller()
|
|
export class AppController {
|
|
@ApiOperation({
|
|
summary: 'Verifica se a API esta online',
|
|
description: 'Endpoint simples usado por deploy, monitoramento e testes manuais para confirmar que o backend esta respondendo.',
|
|
})
|
|
@ApiResponse({ status: 200, description: 'API online.' })
|
|
@Get('health')
|
|
health() {
|
|
return { status: 'ok' };
|
|
}
|
|
}
|