matcher/src/app.module.ts

33 lines
1.2 KiB
TypeScript
Raw Normal View History

2023-04-06 09:12:49 +00:00
import { classes } from '@automapper/classes';
import { AutomapperModule } from '@automapper/nestjs';
import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
2023-04-06 12:21:43 +00:00
import { HealthModule } from './modules/health/health.module';
import { MatcherModule } from './modules/matcher/matcher.module';
2023-05-02 15:26:04 +00:00
import { AdModule } from './modules/ad/ad.module';
import { ConfigurationModule } from '@mobicoop/configuration-module';
2023-04-06 09:12:49 +00:00
@Module({
imports: [
ConfigModule.forRoot({ isGlobal: true }),
ConfigurationModule.forRootAsync({
setConfigurationBrokerRoutingKeys: [
'configuration.create',
'configuration.update',
],
deleteConfigurationRoutingKey: 'configuration.delete',
propagateConfigurationRoutingKey: 'configuration.propagate',
setConfigurationBrokerQueue: 'matcher-configuration-create-update',
deleteConfigurationQueue: 'matcher-configuration-delete',
propagateConfigurationQueue: 'matcher-configuration-propagate',
}),
2023-04-06 09:12:49 +00:00
AutomapperModule.forRoot({ strategyInitializer: classes() }),
2023-04-06 12:21:43 +00:00
HealthModule,
MatcherModule,
2023-04-24 14:44:52 +00:00
AdModule,
2023-04-06 09:12:49 +00:00
],
controllers: [],
providers: [],
})
export class AppModule {}