15 lines
487 B
TypeScript
15 lines
487 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { PaymentsService } from './payments.service';
|
|
import { PaymentsController } from './payments.controller';
|
|
import { MongooseModule } from '@nestjs/mongoose';
|
|
import { Payment, PaymentSchema } from 'src/schemas/payment.schema';
|
|
|
|
@Module({
|
|
imports: [
|
|
MongooseModule.forFeature([{ name: Payment.name, schema: PaymentSchema }]),
|
|
],
|
|
controllers: [PaymentsController],
|
|
providers: [PaymentsService],
|
|
})
|
|
export class PaymentsModule {}
|