aboutsummaryrefslogtreecommitdiff
path: root/src/server.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.js')
-rw-r--r--src/server.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server.js b/src/server.js
index 9a6713f..e9f022e 100644
--- a/src/server.js
+++ b/src/server.js
@@ -4,12 +4,12 @@ const app = express();
const port = 8008;
app.get("/tty", (req, res) => {
- res.sendFile(__dirname + "/html/tty.html");
+ res.sendFile("html/tty.html",{'root': './'});
});
app.get("/display", (req, res) => {
- res.sendFile(__dirname + "/html/display.html");
+ res.sendFile("html/display.html",{'root': './'});
});
-app.use("/src", express.static("src"));
+app.use("/src", express.static("src",{'root': './'}));
app.listen(port, () => {
console.log(`http://localhost:${port}`);
});