diff options
-rw-r--r-- | app.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -36,7 +36,7 @@ app.use(express.urlencoded({ extended: true })); app.use(express.json()); app.use("/", express.static(__dirname + "/overview/public")); -app.use("/mottovote", checkUser, mottovote); +//app.use("/mottovote", checkUser, mottovote); app.use("/quotes", checkUser, quotes); app.use("/poll", checkUser, poll); app.use("/profile", checkUser, profile); @@ -51,6 +51,10 @@ app.get("/images", checkUser, async (req, res) => { res.redirect(links[req.session.cid - 1]); }); +app.get("/zeitung", checkAdmin, (req, res) => { + res.sendFile(__dirname + "/zeitung.pdf"); +}); + app.get("*", (req, res) => res.redirect("/")); app.listen(process.env.PORT || 5005, () => console.log(`Server started on http://localhost:${process.env.PORT}`)); |