aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2023-09-27 16:38:12 +0300
committerkaotisk <kaotisk@arching-kaos.org>2023-09-27 16:38:12 +0300
commit95063fc1bd293520d2c11cc8cc091dbf619505b4 (patch)
treedf72c36dd5aeb16ce2f96e062ecf89428ede9d89 /api
parentb9a7edbb1cdeed788cd0faa1f87bbafdaa4ac50c (diff)
downloadarching-kaos-tools-95063fc1bd293520d2c11cc8cc091dbf619505b4.tar.gz
arching-kaos-tools-95063fc1bd293520d2c11cc8cc091dbf619505b4.tar.bz2
arching-kaos-tools-95063fc1bd293520d2c11cc8cc091dbf619505b4.zip
minor clean up
Diffstat (limited to 'api')
-rwxr-xr-xapi/index.js18
1 files changed, 1 insertions, 17 deletions
diff --git a/api/index.js b/api/index.js
index d9f243f..f572586 100755
--- a/api/index.js
+++ b/api/index.js
@@ -6,18 +6,8 @@
* License: MIT
*/
-/*
- * Loading configuration
- *
- */
const config = require('./config');
-/*
- * PORT we run the service on.
- *
- * Default: 8610
- *
- */
const DEFAULT_PORT = 8610;
const PORT = config.port || DEFAULT_PORT;
@@ -94,10 +84,6 @@ 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.
@@ -137,8 +123,6 @@ function continuethings(exitcode,sh,res){
}
}
-
-
/*
* Adds a latest resolved IPFS path for a given IPNS link
* to a file.
@@ -211,6 +195,7 @@ function addEntriesToFile(entry,res){
}
var json = JSON.stringify(all);
fs.writeFile(config.blocksFile, json, 'utf8', finished);
+ // wtf is dis?
function finished(err) {
console.log('finished writing file');
}
@@ -218,7 +203,6 @@ function addEntriesToFile(entry,res){
}
}
-
app.use(cors);
var corsOptions = {
origin: '*',