Files
Vendaweb-api/src/app.controller.ts
Luis Eduardo Estevao 2b9868bf6d
All checks were successful
Deploy NestJS API / build-and-push-deploy (push) Successful in 2m19s
feat: add app controller with endpoints for application version and health checks.
2026-01-07 20:23:23 -03:00

21 lines
480 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: 'SIMPLIFIQUE HOME CENTER 2026' };
}
}