- ++Booking List

- ++Delete a Booking also for the Admin.
This commit is contained in:
Paolo Arena
2019-10-12 23:34:32 +02:00
parent 624f929c56
commit cebe1208de
10 changed files with 290 additions and 17 deletions

View File

@@ -7,6 +7,8 @@ const tools = require('../tools/general');
var authenticate = (req, res, next) => {
var token = req.header('x-auth');
console.log('authenticate... ');
const access = 'auth';
User.findByToken(token, access).then((user) => {