mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 04:26:41 -04:00
54 lines
1.2 KiB
JavaScript
54 lines
1.2 KiB
JavaScript
![]() |
Meteor.startup(function () {
|
||
|
|
||
|
// New Post RSS
|
||
|
|
||
|
Router.route('/feed.xml', function () {
|
||
|
this.response.write(servePostRSS('new', 'feed.xml'));
|
||
|
this.response.end();
|
||
|
}, {
|
||
|
name: 'feed',
|
||
|
where: 'server'
|
||
|
});
|
||
|
|
||
|
// New Post RSS
|
||
|
|
||
|
Router.route('/rss/posts/new.xml', function () {
|
||
|
this.response.write(servePostRSS('top', 'rss/posts/new.xml'));
|
||
|
this.response.end();
|
||
|
}, {
|
||
|
name: 'rss_posts_new',
|
||
|
where: 'server'
|
||
|
});
|
||
|
|
||
|
// Top Post RSS
|
||
|
|
||
|
Router.route('/rss/posts/top.xml', function () {
|
||
|
this.response.write(servePostRSS('top', 'rss/posts/top.xml'));
|
||
|
this.response.end();
|
||
|
}, {
|
||
|
name: 'rss_posts_top',
|
||
|
where: 'server'
|
||
|
});
|
||
|
|
||
|
// Best Post RSS
|
||
|
|
||
|
Router.route('/rss/posts/best.xml', function () {
|
||
|
this.response.write(servePostRSS('best', 'rss/posts/best.xml'));
|
||
|
this.response.end();
|
||
|
}, {
|
||
|
name: 'rss_posts_best',
|
||
|
where: 'server'
|
||
|
});
|
||
|
|
||
|
// Comment RSS
|
||
|
|
||
|
Router.route('/rss/comments.xml', function() {
|
||
|
this.response.write(serveCommentRSS());
|
||
|
this.response.end();
|
||
|
}, {
|
||
|
name: 'rss_comments',
|
||
|
where: 'server'
|
||
|
});
|
||
|
|
||
|
});
|