import { Controller, Get, Inject } from '@nestjs/common'; import { ApiTags } from '@nestjs/swagger'; import { HealthService } from './health.service'; import { DadosferaLogger } from '@dadosfera/dadosfera-logs'; @ApiTags('Health') @Controller('health') export class HealthController { logger: DadosferaLogger; constructor( @Inject(DadosferaLogger) dadosferaLogger: DadosferaLogger, private readonly healthService: HealthService, ) { this.logger = dadosferaLogger.logger; } @Get() check() { return this.healthService.check(); } }