aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorLarsVomMars2021-01-30 17:15:53 +0100
committerLarsVomMars2021-01-30 17:15:53 +0100
commit1184d47a788ae3320f90de241bf85cc4fc546f97 (patch)
tree3b49f7e8d3c1100b1b91c9262e68c1a054606f11 /app.js
parent96ccd0fb557fe226999d92a5d8688e469f6beb9a (diff)
Auth QOL changes
Diffstat (limited to 'app.js')
-rw-r--r--app.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app.js b/app.js
index 2231936..e2b7410 100644
--- a/app.js
+++ b/app.js
@@ -45,6 +45,7 @@ app.use("/prediction", checkUser, prediction);
app.use("/secrets", checkUser, secrets);
app.use("/admin", checkAdmin, admin); // Lel
app.use("/auth", auth);
+app.get("*", (req, res) => res.redirect("/"));
app.get("/images", checkUser, async (req, res) => {
const links = (await fs.readFile(__dirname + "/images.txt", "utf8")).split("\n");