forked from Yara724/api
New module for expert field
This commit is contained in:
25
src/expert-initiated/expert-initiated.module.ts
Normal file
25
src/expert-initiated/expert-initiated.module.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Module } from "@nestjs/common";
|
||||
import { MongooseModule } from "@nestjs/mongoose";
|
||||
import { FieldExpert, FieldExpertSchema } from "./schemas/field-expert.schema";
|
||||
import { FieldExpertController } from "./expert-initiated.controller";
|
||||
import { FieldExpertService } from "./expert-initiated.service";
|
||||
import { FieldExpertRepository } from "./repositories/field-expert.repository";
|
||||
import { AuthModule } from "src/auth/auth.module";
|
||||
import { JwtModule } from "@nestjs/jwt";
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
MongooseModule.forFeature([
|
||||
{
|
||||
name: FieldExpert.name,
|
||||
schema: FieldExpertSchema,
|
||||
},
|
||||
]),
|
||||
AuthModule,
|
||||
JwtModule,
|
||||
],
|
||||
controllers: [FieldExpertController],
|
||||
providers: [FieldExpertRepository, FieldExpertService],
|
||||
exports: [],
|
||||
})
|
||||
export class ExpertInitiatedModule {}
|
||||
Reference in New Issue
Block a user