introduce a weather module

This commit is contained in:
Sven Czarnian
2022-10-24 21:23:58 +02:00
parent b65f1d7561
commit 3b4a25030f
5 changed files with 290 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
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 {}