taggeando as versões e subindo o dockerfile corrigido para os packages
This commit is contained in:
@@ -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()
|
||||
@ApiExcludeEndpoint()
|
||||
getHello(): string {
|
||||
return this.appService.getHello();
|
||||
@Get('version')
|
||||
@ApiOperation({ summary: 'Get App Version' })
|
||||
getVersion() {
|
||||
return { version: APP_VERSION };
|
||||
}
|
||||
|
||||
@Get('health')
|
||||
@ApiOperation({ summary: 'Health check' })
|
||||
healthCheck() {
|
||||
return { status: 'ok' };
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user