Redirect invalid feed requests
This commit is contained in:
parent
d6a5a30d32
commit
cb6c8919b4
4
app.js
4
app.js
@ -33,6 +33,10 @@ app.get("/robots.txt", function(reg, res) {
|
|||||||
res.send("User-agent: * Disallow: ")
|
res.send("User-agent: * Disallow: ")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
app.get(/\/(feed|rss)\/?$/, function(reg, res) {
|
||||||
|
res.redirect('/feed.xml');
|
||||||
|
})
|
||||||
|
|
||||||
var md = markdown({html: true});
|
var md = markdown({html: true});
|
||||||
md.parser.use(emoji);
|
md.parser.use(emoji);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user