forked from Yara724/api
24 lines
830 B
TypeScript
24 lines
830 B
TypeScript
import { Module } from "@nestjs/common";
|
|
import { HttpModule } from "@nestjs/axios";
|
|
import { MongooseModule } from "@nestjs/mongoose";
|
|
import { ClientModule } from "src/client/client.module";
|
|
import { SystemSettingsModule } from "src/system-settings/system-settings.module";
|
|
import { SandHubDbService } from "src/sand-hub/entity/db-service/sand-hub.db.service";
|
|
import { SandHubModel, SandHubSchema } from "./entity/schema/sand-hub.schema";
|
|
import { SandHubService } from "./sand-hub.service";
|
|
|
|
@Module({
|
|
imports: [
|
|
HttpModule,
|
|
SystemSettingsModule,
|
|
ClientModule,
|
|
MongooseModule.forFeature([
|
|
{ name: SandHubModel.name, schema: SandHubSchema },
|
|
]),
|
|
],
|
|
providers: [SandHubService, SandHubDbService],
|
|
exports: [SandHubService, SandHubDbService],
|
|
controllers: [],
|
|
})
|
|
export class SandHubModule {}
|