taggeando as versões e subindo o dockerfile corrigido para os packages
This commit is contained in:
parent
f5f4d58321
commit
6dba6fb1a9
|
|
@ -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' })
|
||||||
|
getVersion() {
|
||||||
|
return { version: APP_VERSION };
|
||||||
|
}
|
||||||
|
|
||||||
@Get()
|
@Get('health')
|
||||||
@ApiExcludeEndpoint()
|
@ApiOperation({ summary: 'Health check' })
|
||||||
getHello(): string {
|
healthCheck() {
|
||||||
return this.appService.getHello();
|
return { status: 'ok' };
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
export const APP_VERSION = 'v1.1.0';
|
||||||
BIN
vendaweb-api.rar
BIN
vendaweb-api.rar
Binary file not shown.
Loading…
Reference in New Issue