text: const express = require('express');
  const router = express.Router();
  const models = require('utown-queue-db');
  const jwt = require('jsonwebtoken');
  
  module.exports = router;
  
  router.post('/request', (req, res, next) => {
    let eventId = req.body.id;
    let secret = req.body.secret;
  
    var token = jwt.sign({eventId: eventId, secret: secret}, process.env.API_AUTH_SECRET, {
      "expiresIn": '1d'
    });
    res.json({status: 'ok', token: token});
  });
  