katoikia-app/servicio-reportes/src/reports/reports.module.ts

15 lines
473 B
TypeScript
Raw Normal View History

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: [
MongooseModule.forFeature([{ name: Report.name, schema:ReportSchema }]),
],
controllers: [ReportsController],
providers: [ReportsService]
})
export class ReportsModule {}