Browse Source

🎨 json output

main
Pierre 5 years ago
parent
commit
3d9088ce4d
  1. 5
      index.js

5
index.js

@ -45,10 +45,9 @@ app.post('/', async (req, res) => {
const image = await getFox();
const hollidays = await getHolidays(req.body.countryCode);
return {
message: `Welcome to Node Babel`,
foxPicture: image,
catFacts: catInfos,
foxImage: image,
publicHolidays :hollidays
holidays :hollidays
};
});

Loading…
Cancel
Save