Vulcan/packages/telescope-rss/lib/server/routes.js
2014-09-24 17:51:21 +08:00

29 lines
506 B
JavaScript

Meteor.startup(function () {
Router.map(function() {
// Post RSS
this.route('feed', {
where: 'server',
path: '/feed.xml',
action: function() {
this.response.write(servePostRSS());
this.response.end();
}
});
// Comment RSS
this.route('rss_comments', {
where: 'server',
path: '/rss/comments.xml',
action: function() {
this.response.write(serveCommentRSS());
this.response.end();
}
});
});
});