diff options
Diffstat (limited to 'api')
-rwxr-xr-x | api/index.js | 18 |
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: '*', |