mirror of
https://github.com/dadosfera/maestro.git
synced 2026-09-24 05:14:48 +00:00
17 lines
643 B
TypeScript
17 lines
643 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { ClientsModule } from '@nestjs/microservices';
|
|
import { ConnectionClientService } from './client.service';
|
|
import { ConnectionClientConfiguration } from './client.config';
|
|
import { ConnectionController } from './connection.controller';
|
|
import { DadosferaLogger } from '@dadosfera/dadosfera-logs';
|
|
|
|
const client = new ConnectionClientConfiguration();
|
|
|
|
@Module({
|
|
controllers: [ConnectionController],
|
|
providers: [ConnectionClientService, DadosferaLogger],
|
|
imports: [ClientsModule.register([client.providerOptions])],
|
|
exports: [ConnectionClientService],
|
|
})
|
|
export class ConnectionModule {}
|