Vulcan/packages/telescope-notifications/lib/server/routes.js
2014-11-19 15:14:54 +09:00

16 lines
No EOL
406 B
JavaScript

Meteor.startup(function () {
// Notification email
Router.route('/email/notification/:id?', {
name: 'notification',
where: 'server',
action: function() {
var notification = Notifications.findOne(this.params.id);
var notificationContents = buildEmailNotification(notification);
this.response.write(notificationContents.html);
this.response.end();
}
});
});