diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-10 05:08:59 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-10 05:08:59 +0300 |
commit | ae9726f747b2ec3e5805d03ef04ad47cb7628315 (patch) | |
tree | cebc25f70264532a3b6276c4c7acc159d4703d2e /api/index.js | |
parent | ab7cbfd693c6251f6c1bc427eb9a65b1dbee159e (diff) | |
download | arching-kaos-tools-ae9726f747b2ec3e5805d03ef04ad47cb7628315.tar.gz arching-kaos-tools-ae9726f747b2ec3e5805d03ef04ad47cb7628315.tar.bz2 arching-kaos-tools-ae9726f747b2ec3e5805d03ef04ad47cb7628315.zip |
Refactoring
Diffstat (limited to 'api/index.js')
-rwxr-xr-x | api/index.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/api/index.js b/api/index.js index cb84d25..9bd064b 100755 --- a/api/index.js +++ b/api/index.js @@ -88,44 +88,7 @@ const routes = require('./routes'); //Routes.provideTheAppHere(app); app.use('/', routes); -/* - * 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"}); - } -} -/* - * After validation went through we examine the return code - * of the application that run the test. - * - * Returns : - * - error on failure - * - on success we process with addEntriesToFile() - * - */ -function continuethings(exitcode,sh,res){ - if (exitcode === 0){ - var entry = {zblock:sh}; - addEntriesToFile(entry,res); - } else { - res.send({error:"Invalid data"}); - } -} /* * Adds a latest resolved IPFS path for a given IPNS link |