Authored by 陈峰

node-lib和feed

... ... @@ -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) => {
... ...
... ... @@ -50,7 +50,7 @@
"xml2js": "^0.4.17",
"yoho-express-session": "^2.0.0",
"yoho-md5": "^2.0.0",
"yoho-node-lib": "=0.2.21",
"yoho-node-lib": "=0.2.22",
"yoho-zookeeper": "^1.0.8"
},
"devDependencies": {
... ...