oopsie fix

This commit is contained in:
vaxerski 2023-02-25 19:16:40 +00:00
parent 7351849e68
commit 5abf75bfa6

View file

@ -35,6 +35,10 @@ app.get("/rices", (req, res) => {
res.render("rices"); res.render("rices");
}); });
app.get("/discord", (req, res) => {
res.status(200).send("<head><title>redirecting...</title><body><script>window.location.href='https://discord.gg/hQ9XvMUjjr';</script></body>");
});
app.use((_, res) => { app.use((_, res) => {
res.status(404).render("404"); res.status(404).render("404");
}); });
@ -42,7 +46,3 @@ app.use((_, res) => {
app.listen(process.env.PORT || 4000, () => { app.listen(process.env.PORT || 4000, () => {
console.log("Listening to PORT: 4000"); console.log("Listening to PORT: 4000");
}); });
app.get("/discord", (req, res) => {
res.status(200).send("<head><title>redirecting...</title><body><script>window.location.href='https://discord.gg/hQ9XvMUjjr';</script></body>");
});