mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 00:27:21 +02:00
Remove duplicate blog.xml route (#364)
This commit is contained in:
parent
ba99660a3c
commit
e8599c05a8
1 changed files with 0 additions and 9 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue