From 3d9088ce4de32c23d7211e34ec7b4f9c9f06ef77 Mon Sep 17 00:00:00 2001 From: Pierre Date: Mon, 15 Feb 2021 18:11:17 +0100 Subject: [PATCH] :art: json output --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 61214af..5208b8d 100644 --- a/index.js +++ b/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 }; });