aboutsummaryrefslogtreecommitdiff
path: root/api/routes/announceZChain/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'api/routes/announceZChain/index.js')
-rw-r--r--api/routes/announceZChain/index.js22
1 files changed, 1 insertions, 21 deletions
diff --git a/api/routes/announceZChain/index.js b/api/routes/announceZChain/index.js
index 91ac5b9..a1b336c 100644
--- a/api/routes/announceZChain/index.js
+++ b/api/routes/announceZChain/index.js
@@ -1,24 +1,4 @@
/*
- * After NS validation went through we examine the return code
- * of the application that run the test.
- *
- * Returns:
- * - error on failure
- * - on success we process with addNSEntriesToFile()
- *
- */
-function continuethingsNS(validitycode,sh,res,gotit){
- if (validitycode === 0){
- var entry = {
- zchain: sh,
- latest: JSON.parse(gotit).Path.replace('/ipfs/','')
- };
- addNSEntriesToFile(entry,res);
- } else {
- res.send({error:"Invalid data"});
- }
-}
-/*
* Accepts a zchain
*
* Checks:
@@ -32,7 +12,7 @@ function continuethingsNS(validitycode,sh,res,gotit){
* function getNSvalidity()
*
*/
-const getNSvalidity = require('../../validators/ZchainValidator')
+const getNSvalidity = require('../../validators/ZchainValidator');
module.exports = (req, res) => {
console.log(req);