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';
|
2023-04-06 15:05:25 +00:00
|
|
|
import { MatcherModule } from './modules/matcher/matcher.module';
|
2023-05-02 15:26:04 +00:00
|
|
|
import { AdModule } from './modules/ad/ad.module';
|
2023-05-30 09:41:30 +00:00
|
|
|
import { ConfigurationModule } from '@mobicoop/configuration-module';
|
2023-04-06 09:12:49 +00:00
|
|
|
|
|
|
|
@Module({
|
|
|
|
imports: [
|
|
|
|
ConfigModule.forRoot({ isGlobal: true }),
|
2023-05-30 09:41:30 +00:00
|
|
|
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,
|
2023-04-06 15:05:25 +00:00
|
|
|
MatcherModule,
|
2023-04-24 14:44:52 +00:00
|
|
|
AdModule,
|
2023-04-06 09:12:49 +00:00
|
|
|
],
|
|
|
|
controllers: [],
|
|
|
|
providers: [],
|
|
|
|
})
|
|
|
|
export class AppModule {}
|