diff --git a/units/apiServer.js b/units/apiServer.js index 8c27298..b0637bb 100644 --- a/units/apiServer.js +++ b/units/apiServer.js @@ -71,24 +71,24 @@ export function createServer(config, nodeDirectory, onDataCallback) { }); app.get("/index.html", (req, res) => { - res.sendFile(path.resolve('html/index.html')); + res.sendFile(path.resolve('./html/index.html')); }); app.get("/dashboard.html", (req, res) => { - res.sendFile(path.resolve('html/dashboard.html')); + res.sendFile(path.resolve('./html/dashboard.html')); }); app.get("/daemonLog.html", (req, res) => { - res.sendFile(path.resolve('html/daemonLog.html')); + res.sendFile(path.resolve('./html/daemonLog.html')); }); app.get("/peers.html", (req, res) => { - res.sendFile(path.resolve('html/peers.html')); + res.sendFile(path.resolve('./html/peers.html')); }); app.get("*", (req, res) => { if (path.extname(req.path) !== '.map') { - var pathName = safeResolve('html' + req.path); + var pathName = safeResolve('./html' + req.path); if (fs.existsSync(pathName)) { res.sendFile(pathName);