app.get("/view", (req, res) =>{
request('https://corona.lmao.ninja/countries', (error, response, body) => {
console.error('error:', error);
console.log('statusCode:', response && response.statusCode);
console.log('body:', body);
return res.send(body);
});
});
I have this code working and it gives me an json in my browser. I am new to programing and have no idea how i put this in html or javascript to make a nice looking website.