aboutsummaryrefslogtreecommitdiff
path: root/api/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'api/index.js')
-rwxr-xr-xapi/index.js37
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