diff --git a/.prettierignore b/.prettierignore index 7b977582..ab38eac9 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1,2 @@ static/webui/libs/ +*.html diff --git a/src/routes/webui.ts b/src/routes/webui.ts index 93005f34..27ac95e5 100644 --- a/src/routes/webui.ts +++ b/src/routes/webui.ts @@ -19,15 +19,18 @@ webuiRouter.use("/webui", (req, res, next) => { }); // Serve virtual routes -webuiRouter.get("/webui/settings", (_req, res) => { - res.sendFile(path.join(rootDir, "static/webui/index.html")); -}); webuiRouter.get("/webui/inventory", (_req, res) => { res.sendFile(path.join(rootDir, "static/webui/index.html")); }); webuiRouter.get("/webui/mods", (_req, res) => { res.sendFile(path.join(rootDir, "static/webui/index.html")); }); +webuiRouter.get("/webui/settings", (_req, res) => { + res.sendFile(path.join(rootDir, "static/webui/index.html")); +}); +webuiRouter.get("/webui/cheats", (_req, res) => { + res.sendFile(path.join(rootDir, "static/webui/index.html")); +}); // Serve static files webuiRouter.use("/webui", express.static(path.join(rootDir, "static/webui"))); diff --git a/static/webui/index.html b/static/webui/index.html index 037c5280..423c51a1 100644 --- a/static/webui/index.html +++ b/static/webui/index.html @@ -1,286 +1,269 @@ -
-