mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-27 00:37:55 +00:00
Add Weather module with controller, service, and DTO for fetching weather details
This commit is contained in:
+2
-1
@@ -1,4 +1,5 @@
|
||||
import AuthConfig from './auth.config';
|
||||
import AppConfig from './app.config';
|
||||
import JwtConfig from './jwt.config';
|
||||
export default [AuthConfig, AppConfig, JwtConfig];
|
||||
import WeatherOpenConfig from './weather.open.config';
|
||||
export default [AuthConfig, AppConfig, JwtConfig, WeatherOpenConfig];
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
import { registerAs } from '@nestjs/config';
|
||||
|
||||
export default registerAs(
|
||||
'openweather-config',
|
||||
(): Record<string, any> => ({
|
||||
OPEN_WEATHER_MAP_API_KEY: process.env.OPEN_WEATHER_MAP_API_KEY,
|
||||
}),
|
||||
);
|
||||
Reference in New Issue
Block a user