app.get("/", function (req, res) {
async function showData() {
const res = await fetch("api.openweathermap.org/data/2.5/weather?q=Berlin&appid={apiID}");
const data = await res.json();
console.log(data);
}
})
//Here when I run node app.js this should log the data inside terminal but I am getting error.