2022-07-01 23:11:32 +00:00
|
|
|
import { Module } from '@nestjs/common';
|
|
|
|
import { ReportsService } from './reports.service';
|
|
|
|
import { ReportsController } from './reports.controller';
|
|
|
|
import { MongooseModule } from '@nestjs/mongoose';
|
|
|
|
import { Report, ReportSchema } from '../schemas/report.schema';
|
|
|
|
|
|
|
|
@Module({
|
|
|
|
imports: [
|
2022-07-25 04:38:48 +00:00
|
|
|
MongooseModule.forFeature([{ name: Report.name, schema: ReportSchema }]),
|
2022-07-01 23:11:32 +00:00
|
|
|
],
|
|
|
|
controllers: [ReportsController],
|
2022-07-25 04:38:48 +00:00
|
|
|
providers: [ReportsService],
|
2022-07-01 23:11:32 +00:00
|
|
|
})
|
|
|
|
export class ReportsModule {}
|