From 40a675361a3d1606d86abd6e516f73841aa573ad Mon Sep 17 00:00:00 2001 From: Gabriel Cardona Date: Sat, 2 Jun 2018 18:15:54 -0700 Subject: [PATCH] JSON --- routes/blockchain.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/blockchain.js b/routes/blockchain.js index 714a3653..0c8cc4c9 100644 --- a/routes/blockchain.js +++ b/routes/blockchain.js @@ -101,7 +101,7 @@ router.get('/getBlockCount', (req, res, next) => { } }) .then((response) => { - res.send(response.data.result); + res.json(response.data.result); }) .catch((error) => { res.send(error.response.data.error.message);