introduce a weather module
This commit is contained in:
		
							
								
								
									
										13
									
								
								src/weather/weather.module.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								src/weather/weather.module.ts
									
									
									
									
									
										Normal 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 {} | ||||
		Reference in New Issue
	
	Block a user