taggeando as versões e subindo o dockerfile corrigido para os packages

This commit is contained in:
JuruSysadmin 2025-06-20 10:16:42 -03:00
parent f5f4d58321
commit 6dba6fb1a9
3 changed files with 16 additions and 9 deletions

View File

@ -1,14 +1,20 @@
import { Controller, Get } from '@nestjs/common'; import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service'; import { ApiTags, ApiOperation } from '@nestjs/swagger';
import { ApiExcludeEndpoint } from '@nestjs/swagger'; import { APP_VERSION } from './version';
@Controller() @ApiTags('Main')
@Controller('v1')
export class AppController { export class AppController {
constructor(private readonly appService: AppService) {} @Get('version')
@ApiOperation({ summary: 'Get App Version' })
@Get() getVersion() {
@ApiExcludeEndpoint() return { version: APP_VERSION };
getHello(): string {
return this.appService.getHello();
} }
@Get('health')
@ApiOperation({ summary: 'Health check' })
healthCheck() {
return { status: 'ok' };
}
} }

1
src/version.ts Normal file
View File

@ -0,0 +1 @@
export const APP_VERSION = 'v1.1.0';

Binary file not shown.