logging.module.ts 512 B

123456789101112131415
  1. import { Module } from '@nestjs/common';
  2. import { MongooseModule } from '@nestjs/mongoose';
  3. import { LoggingService } from './logging.service';
  4. import { LoggingController } from './logging.controller';
  5. import { LogEntrySchema } from './models/logentry.model';
  6. @Module({
  7. imports: [
  8. MongooseModule.forFeature([{ name: 'logging', schema: LogEntrySchema }]),
  9. ],
  10. providers: [LoggingService],
  11. controllers: [LoggingController],
  12. exports: [MongooseModule, LoggingService],
  13. })
  14. export class LoggingModule {}