diff --git a/src/api/routes/index.js b/src/api/routes/index.js index 40f68d4..73e6a9c 100644 --- a/src/api/routes/index.js +++ b/src/api/routes/index.js @@ -172,9 +172,11 @@ router.get('/moreInfo/:title' , (req, res) =>{ api.getMoreInfo(title) .then(info =>{ - res.status(200).json({ - info - }); + if (info.length > 0) { + res.status(200).json({ + info + }); + } }).catch((err) =>{ console.error(err); });