mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00

Using {{pathFor}}, path(), and url() where possible. Passing in path to Meteor.absoluteUrl() where the IronRouter functions didn't make sense. Also deleting some random unused code.
53 lines
1.2 KiB
JavaScript
53 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'
|
|
});
|
|
|
|
});
|