- add: createPushSubscription :
'Subscribed to FreePlanet.app!', 'You can now receive Notification and Messages.'
This commit is contained in:
@@ -3,7 +3,7 @@ var {User} = require('../models/user');
|
||||
var authenticate = (req, res, next) => {
|
||||
var token = req.header('x-auth');
|
||||
|
||||
console.log("TOKEN = " + token);
|
||||
// console.log("TOKEN = " + token);
|
||||
|
||||
User.findByToken(token).then((user) => {
|
||||
if (!user) {
|
||||
|
||||
Reference in New Issue
Block a user