mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
29 lines
506 B
JavaScript
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();
|
|
}
|
|
});
|
|
|
|
});
|
|
|
|
});
|