diff --git a/index.js b/index.js index c404fd21..95f4baf2 100644 --- a/index.js +++ b/index.js @@ -24,6 +24,7 @@ app.get("/", (req, res) => { }); app.get("/admin", (req, res) => { + if (!auth(req, res)) return; res.sendFile(__dirname + "/public/html/admin.html"); });