Vulcan/packages/telescope-rss/lib/server/routes.js

30 lines
506 B
JavaScript
Raw Normal View History

2014-06-27 19:57:30 +09:00
Meteor.startup(function () {
Router.map(function() {
2014-09-24 17:51:21 +08:00
// Post RSS
2014-06-27 19:57:30 +09:00
this.route('feed', {
where: 'server',
path: '/feed.xml',
action: function() {
2014-09-24 17:51:21 +08:00
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());
2014-06-27 19:57:30 +09:00
this.response.end();
}
});
});
2014-09-24 17:51:21 +08:00
});