26 lines
744 B
TypeScript
26 lines
744 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { HttpModule } from '@nestjs/axios';
|
|
import { ConfigModule } from '@nestjs/config';
|
|
import { EventEmitterModule } from '@nestjs/event-emitter';
|
|
import { MerchantController } from './merchant.controller';
|
|
|
|
import { HttpUserServiceClient } from './services/user.service.client';
|
|
import { PrismaService } from 'src/shared/services/prisma.service';
|
|
import { MerchantService } from './services/merchant.service';
|
|
|
|
|
|
@Module({
|
|
imports: [
|
|
HttpModule,
|
|
ConfigModule,
|
|
EventEmitterModule.forRoot(),
|
|
],
|
|
controllers: [MerchantController],
|
|
providers: [
|
|
MerchantService,
|
|
PrismaService,
|
|
HttpUserServiceClient
|
|
],
|
|
exports: [MerchantService],
|
|
})
|
|
export class MerchantModule {} |