forked from Yara724/api
20 lines
646 B
TypeScript
20 lines
646 B
TypeScript
import { HttpModule } from "@nestjs/axios";
|
|
import { Module } from "@nestjs/common";
|
|
import { MongooseModule } from "@nestjs/mongoose";
|
|
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,
|
|
MongooseModule.forFeature([
|
|
{ name: SandHubModel.name, schema: SandHubSchema },
|
|
]),
|
|
],
|
|
providers: [SandHubService, SandHubDbService],
|
|
exports: [SandHubService, SandHubDbService],
|
|
controllers: [],
|
|
})
|
|
export class SandHubModule {}
|