mirror of
https://github.com/hyprwm/hyprland-website.git
synced 2024-11-16 18:35:59 +01:00
oopsie fix
This commit is contained in:
parent
7351849e68
commit
5abf75bfa6
1 changed files with 4 additions and 4 deletions
8
index.js
8
index.js
|
@ -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>");
|
|
||||||
});
|
|
Loading…
Reference in a new issue