3 var logger = require('gitter-web-env').logger;
4 var pushNotificationService = require('gitter-web-push-notifications');
6 module.exports = function(req, res, next) {
7 var userId = req.user.id;
9 logger.info('Vapid registration', { userId: userId });
10 return pushNotificationService
11 .registerVapidSubscription(req.body, userId)
13 res.status(204).end();