mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-31 16:19:07 +00:00
23 lines
565 B
TypeScript
23 lines
565 B
TypeScript
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();
|
|
}
|
|
}
|