lib/locals.js
function addUser(req, res, next) {
  res.locals.user = req.user;
  next();
}
function addUser(req, res, next) {
  res.locals.user = req.user;
  next();
}
function addUser ( req , res , next ) { res . locals . user = req . user ; next ( ) ; }
Adds current user to locals
@param {Object} req
@param {Object} res
@param {Function} next
Adds current user to locals