| 1234567891011121314151617181920212223 |
- // apps/box-app-api/src/feature/ads/ad.module.ts
- import { Module } from '@nestjs/common';
- import { HttpModule } from '@nestjs/axios';
- import { RedisModule } from '@box/db/redis/redis.module';
- import { SharedModule } from '@box/db/shared.module';
- import { AdService } from './ad.service';
- import { AdController } from './ad.controller';
- import { AuthModule } from '../auth/auth.module';
- import { RabbitmqModule } from '../../rabbitmq/rabbitmq.module';
- @Module({
- imports: [
- HttpModule, // 👈 for notifying mgnt-api cache sync
- RedisModule, // 👈 make RedisService available here
- SharedModule, // 👈 make MongoPrismaService available here
- AuthModule, // 👈 make JwtAuthGuard available here
- RabbitmqModule, // 👈 make RabbitmqPublisherService available here
- ],
- providers: [AdService],
- controllers: [AdController],
- exports: [AdService],
- })
- export class AdModule {}
|