Redirect invalid feed requests

This commit is contained in:
Marcus Noble 2020-11-21 20:21:59 +00:00
parent d6a5a30d32
commit cb6c8919b4

4
app.js
View File

@ -33,6 +33,10 @@ app.get("/robots.txt", function(reg, res) {
res.send("User-agent: * Disallow: ")
})
app.get(/\/(feed|rss)\/?$/, function(reg, res) {
res.redirect('/feed.xml');
})
var md = markdown({html: true});
md.parser.use(emoji);