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 { AppService } from './app.service';
|
||||
import { ApiExcludeEndpoint } from '@nestjs/swagger';
|
||||
import { ApiTags, ApiOperation } from '@nestjs/swagger';
|
||||
import { APP_VERSION } from './version';
|
||||
|
||||
@Controller()
|
||||
@ApiTags('Main')
|
||||
@Controller('v1')
|
||||
export class AppController {
|
||||
constructor(private readonly appService: AppService) {}
|
||||
@Get('version')
|
||||
@ApiOperation({ summary: 'Get App Version' })
|
||||
getVersion() {
|
||||
return { version: APP_VERSION };
|
||||
}
|
||||
|
||||
@Get()
|
||||
@ApiExcludeEndpoint()
|
||||
getHello(): string {
|
||||
return this.appService.getHello();
|
||||
@Get('health')
|
||||
@ApiOperation({ summary: 'Health check' })
|
||||
healthCheck() {
|
||||
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