Updated redirect rules

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
2022-07-21 07:03:17 +01:00
parent 0bd69bd3f3
commit 21f1d9216c
3 changed files with 226 additions and 4 deletions

8
app.js
View File

@@ -53,11 +53,15 @@ app.get("/robots.txt", function(req, res) {
app.get(/(\/(feeds?|rss|atom)\/?|feed.xml|rss.xml|index.rss|feed.rss)$/, function(req, res) {
res.redirect(301, '/feed.xml');
})
});
app.get(/.+\/manifest.json$/, function(req, res) {
res.redirect(301, '/manifest.json');
});
app.get("/healthz", function(req, res) {
res.sendStatus(200);
})
});
var md = markdown({html: true});
md.parser.use(emoji);