...
|
...
|
@@ -46,9 +46,9 @@ const index = (req, res, next) => { |
|
|
});
|
|
|
});
|
|
|
if (req.params[0] && req.params[0] === '/atom') {
|
|
|
return res.send(feed.render('atom-1.0'));
|
|
|
return res.send(feed.atom1());
|
|
|
}
|
|
|
return res.send(feed.render('rss-2.0'));
|
|
|
return res.send(feed.rss2());
|
|
|
}).catch(next);
|
|
|
};
|
|
|
const rss = (req, res, next, gmt) => {
|
...
|
...
|
|