From fa11f6ae1795eafe1d7464f77232dd6e0e8df3c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9luchu?= Date: Mon, 1 Jun 2020 20:20:03 +0200 Subject: [PATCH] Simple JSON MoreInfo --- src/api/routes/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/routes/index.js b/src/api/routes/index.js index 179ed49..057e38a 100644 --- a/src/api/routes/index.js +++ b/src/api/routes/index.js @@ -174,9 +174,9 @@ router.get('/moreInfo/:title' , (req, res) =>{ .then(info =>{ if (info.length > 0) { res.status(200).json({ - info: JSON.parse(JSON.stringify(info)) + info }); - } else { res.status(404) } + } else { res.status(400) } }).catch((err) =>{ console.error(err); });