Files
aman-backend/src/logging/logging.module.ts
2022-10-22 23:24:18 +02:00

16 line
512 B
TypeScript

import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { LoggingService } from './logging.service';
import { LoggingController } from './logging.controller';
import { LogEntrySchema } from './models/logentry.model';
@Module({
imports: [
MongooseModule.forFeature([{ name: 'logging', schema: LogEntrySchema }]),
],
providers: [LoggingService],
controllers: [LoggingController],
exports: [MongooseModule, LoggingService],
})
export class LoggingModule {}