Remove duplicate blog.xml route (#364)

This commit is contained in:
Richard Zhang 2018-01-11 16:42:39 -08:00 committed by Joel Marcey
parent ba99660a3c
commit e8599c05a8

View file

@ -260,15 +260,6 @@ function execute(port) {
res.send(xml);
});
});
app.get(/blog\/.*xml$/, (req, res) => {
res.set('Content-Type', 'application/rss+xml');
let parts = req.path.toString().split('blog/');
if (parts[1].toLowerCase() == 'atom.xml') {
res.send(feed('atom'));
return;
}
res.send(feed('rss'));
});
app.get(/blog\/.*xml$/, (req, res) => {
res.set('Content-Type', 'application/rss+xml');