import { Module } from '@nestjs/common'; import { HealthServerController } from './adapters/primaries/health-server.controller'; import { DatabaseModule } from '../database/database.module'; import { HealthController } from './adapters/primaries/health.controller'; import { TerminusModule } from '@nestjs/terminus'; import { MESSAGE_BROKER_PUBLISHER, MESSAGE_PUBLISHER } from 'src/app.constants'; import { MessageBrokerPublisher } from '@mobicoop/message-broker-module'; import { MessagePublisher } from './adapters/secondaries/message-publisher'; import { RepositoriesHealthIndicatorUseCase } from './domain/usecases/repositories.health-indicator.usecase'; import { AdRepository } from '../ad/adapters/secondaries/ad.repository'; @Module({ imports: [TerminusModule, DatabaseModule], controllers: [HealthServerController, HealthController], providers: [ RepositoriesHealthIndicatorUseCase, AdRepository, { provide: MESSAGE_BROKER_PUBLISHER, useClass: MessageBrokerPublisher, }, { provide: MESSAGE_PUBLISHER, useClass: MessagePublisher, }, ], }) export class HealthModule {}