Initial commit
This commit is contained in:
13
backend/config/api.js
Normal file
13
backend/config/api.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const weatherBaseUrl = "https://api.openweathermap.org/data/2.5";
|
||||
|
||||
const config = {
|
||||
weather: {
|
||||
baseUrl: weatherBaseUrl,
|
||||
apiKey: process.env.OPENWEATHER_API_KEY || "",
|
||||
city: process.env.WEATHER_CITY || "Seoul",
|
||||
units: process.env.WEATHER_UNITS || "metric",
|
||||
language: process.env.WEATHER_LANG || "en",
|
||||
},
|
||||
};
|
||||
|
||||
module.exports = config;
|
||||
Reference in New Issue
Block a user