forked from Yara724/api
26 lines
818 B
TypeScript
26 lines
818 B
TypeScript
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 {}
|