diff options
author | metamuffin <metamuffin@yandex.com> | 2021-09-21 16:19:46 +0200 |
---|---|---|
committer | metamuffin <metamuffin@yandex.com> | 2021-09-21 16:19:46 +0200 |
commit | c35da9dc7882f3b51054590e01349ee4e37a027c (patch) | |
tree | 45ec1c43adf4d87e1831c8c9cd2dc34fff50aa5f /source | |
parent | 3f0a762ace654e7d359c3f093dca7d1946cb14e2 (diff) | |
download | metamuffin-website-c35da9dc7882f3b51054590e01349ee4e37a027c.tar metamuffin-website-c35da9dc7882f3b51054590e01349ee4e37a027c.tar.bz2 metamuffin-website-c35da9dc7882f3b51054590e01349ee4e37a027c.tar.zst |
moved links to diffent file and added link to sofviic
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") |