I am new to Node.js and I am stuck with small issue. My api is returning JSon but I am not able to see JSon in data or response.
router.get('/search/:id', function(req, res){client.get("http://localhost:3000/api/search/5600678e1c76b4680e0d6544", function(data, response){
console.log(data);
console.log(response);
res.render('test', {test: data, user : req.user , title : 'Home'});
});
});