aboutsummaryrefslogtreecommitdiff
path: root/api/routes/getInnerIPFSContent
diff options
context:
space:
mode:
Diffstat (limited to 'api/routes/getInnerIPFSContent')
-rw-r--r--api/routes/getInnerIPFSContent/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/routes/getInnerIPFSContent/index.js b/api/routes/getInnerIPFSContent/index.js
index 555d2a3..e17d038 100644
--- a/api/routes/getInnerIPFSContent/index.js
+++ b/api/routes/getInnerIPFSContent/index.js
@@ -19,14 +19,14 @@ module.exports = (req, res) => {
regex= /Qm[A-Za-z0-9]{44}/;
if (regex.test(req.query.ipfs)){
if (req.query.ipfs === "QmbFMke1KXqnYyBBWxB74N4c5SBnJMVAiMNRcGu6x1AwQH" ){
- res.send({errno:"Genesis block"});
+ res.send({error:"Genesis block"});
} else {
fetchZblock(req.query.ipfs,res);
}
} else {
- res.send({errno:"Invalid data: regexp failed to pass"});
+ res.send({error:"Invalid data: regexp failed to pass"});
}
} else {
- res.send({errno:"Invalid data: no valid zblock was provided"});
+ res.send({error:"Invalid data: no valid zblock was provided"});
}
}