diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/index.ts b/source/index.ts index dac1b2d..2106b32 100644 --- a/source/index.ts +++ b/source/index.ts @@ -1,5 +1,4 @@ // SPDX-License-Identifier: AGPL-3.0-only - import express from "express" import { readFileSync } from "fs" import { readFile } from "fs/promises" @@ -22,6 +21,7 @@ app.get("/", (req, res) => res.redirect("/about")) app.get("/about", (req, res) => res.render("about", render_env)) app.get("/projects", (req, res) => res.render("projects", render_env)) app.get("/contact", (req, res) => res.render("contact", render_env)) +app.get("/links", (req, res) => res.render("links", render_env)) app.get("/licence", async (req, res) => { const content = (await readFile(join(__dirname, "../LICENCE"))).toString() @@ -30,7 +30,7 @@ app.get("/licence", async (req, res) => { app.get("/favicon.ico", (req,res) => res.sendStatus(204)) // no content app.get("/robots.txt", (req,res) => { - res.send("User-Agent: *\nDisallow: /") + res.send("User-Agent: *\nDisallow: /\n") }) const PORT = parseInt(process.env.PORT ?? "8080") |