mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-07 06:59:07 +00:00
23 lines
687 B
TypeScript
23 lines
687 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { ClientsModule } from '@nestjs/microservices';
|
|
import { ConnectorClientService } from './client.service';
|
|
import { ConnectorClientConfiguration } from './client.config';
|
|
import { ConnectorController } from './connector.controller';
|
|
import { DadosferaLogger } from '@dadosfera/dadosfera-logs';
|
|
|
|
const connectorClient = new ConnectorClientConfiguration();
|
|
|
|
@Module({
|
|
controllers: [ConnectorController],
|
|
providers: [ConnectorClientService, DadosferaLogger],
|
|
imports: [
|
|
ClientsModule.register([
|
|
{
|
|
name: 'CONNECTOR_PACKAGE',
|
|
...connectorClient.config(),
|
|
},
|
|
]),
|
|
],
|
|
})
|
|
export class ConnectorModule {}
|