3 var env
= require('gitter-web-env');
4 var winston
= env
.logger
;
5 var pushNotificationService
= require('gitter-web-push-notifications');
7 module
.exports = function(req
, res
, next
) {
8 winston
.info('APN user registration', { deviceId
: req
.body
.deviceId
, userId
: req
.user
.id
});
10 return pushNotificationService
11 .registerUser(req
.body
.deviceId
, req
.user
.id
)
13 res
.send({ success
: true });