Files
aman-backend/src/weather/weather.module.ts
2022-10-24 21:23:58 +02:00

14 lines
415 B
TypeScript

import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { WeatherSchema } from './models/weather.model';
import { WeatherService } from './weather.service';
@Module({
imports: [
MongooseModule.forFeature([{ name: 'weather', schema: WeatherSchema }]),
],
providers: [WeatherService],
exports: [MongooseModule, WeatherService],
})
export class WeatherModule {}