var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

module.exports = router;

var express = require('express');
var router = express.Router();

const { logger } = require('../logging');

/* GET users listing. */
router.get('/me', function(req, res, next) {
  const userEmail = req.header('X-Goog-Authenticated-User-Email');

  logger.info(`User email: ${userEmail}`);

  res.json({email: userEmail, fullName: ""});
});

module.exports = router;

Add /users/me to print out simple json with user email