diff --git a/lib/modules/webserver/server.js b/lib/modules/webserver/server.js index 8d8bbcb5..46731948 100644 --- a/lib/modules/webserver/server.js +++ b/lib/modules/webserver/server.js @@ -6,6 +6,7 @@ var express = require('express'); let path = require('path'); var expressWebSocket = require('express-ws'); var bodyParser = require('body-parser'); +var fs = require('../../core/fs.js'); class Server { constructor(options) { @@ -53,7 +54,7 @@ class Server { app.get('/*', function (req, res) { self.logger.trace('webserver> GET ' + req.path); res.sendFile(path.join(fs.dappPath(self.dist, 'index.html'))); - } + }); } app.listen(this.port); diff --git a/package.json b/package.json index ff5ed13c..ef1175e1 100644 --- a/package.json +++ b/package.json @@ -32,9 +32,9 @@ "babel-preset-es2017": "6.24.1", "babel-preset-react": "^6.24.1", "bip39": "^2.5.0", + "body-parser": "^1.18.2", "chokidar": "^2.0.3", "clone-deep": "^4.0.0", - "body-parser": "^1.18.2", "colors": "^1.1.2", "commander": "^2.15.1", "css-loader": "^0.28.11", @@ -43,7 +43,7 @@ "ejs": "^2.5.8", "eth-ens-namehash": "^2.0.8", "eth-lib": "^0.2.8", - "ethereumjs-wallet": "^0.6.0", + "ethereumjs-wallet": "0.6.0", "express": "^4.16.2", "express-ws": "^3.0.0", "file-loader": "^1.1.5",