Updated redirect rules
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
8
app.js
8
app.js
@@ -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);
|
||||
|
Reference in New Issue
Block a user