Files
Vendaweb-api/src/app.controller.ts
simplifique e2a008e9a9
All checks were successful
Deploy NestJS API / build-and-push-deploy (push) Successful in 1m59s
fix: update health check response to return version 3
2026-01-05 18:45:48 -05:00

21 lines
449 B
TypeScript

import { Controller, Get } from '@nestjs/common';
import { ApiTags, ApiOperation } from '@nestjs/swagger';
import { APP_VERSION } from './version';
@ApiTags('Main')
@Controller('v1')
export class AppController {
@Get('version')
@ApiOperation({ summary: 'Get App Version' })
getVersion() {
return { version: APP_VERSION };
}
@Get('health')
@ApiOperation({ summary: 'Health check' })
healthCheck() {
return { status: 'ok v3' };
}
}