💀 Removes files serving from mock server

This commit is contained in:
Rune Harlyk
2024-02-05 18:07:59 +01:00
parent 749d6d10ad
commit 8286c5f3b5
-4
View File
@@ -326,8 +326,4 @@ app.post("/system/stop", (req, res) => {
model.running = false;
model.res.send(settings);
});
app.get("/", function (req, res) {
res.status(200).sendFile(`/`, { root: path });
});
app.get("*.*", express.static(path, { maxAge: "1y" }));
app.listen(port, () => console.log(`Open at http://localhost:${port}`));