14 lines
524 B
TypeScript
14 lines
524 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { MongooseModule } from '@nestjs/mongoose';
|
|
import { ParticipantService } from './participant.service';
|
|
import { ParticipantController } from './participant.controller';
|
|
import { Participant, ParticipantSchema } from './entity/participant.entity';
|
|
|
|
@Module({
|
|
imports: [
|
|
MongooseModule.forFeature([{ name: Participant.name, schema: ParticipantSchema }]),
|
|
],
|
|
controllers: [ParticipantController],
|
|
providers: [ParticipantService],
|
|
})
|
|
export class ParticipantModule {} |