From 95063fc1bd293520d2c11cc8cc091dbf619505b4 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 27 Sep 2023 16:38:12 +0300 Subject: minor clean up --- api/index.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) (limited to 'api/index.js') 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: '*', -- cgit v1.2.3