lib/locals.js
function addSiteData(site) {
  return (req, res, next) => {
    res.locals.url = uriToUrl(req.hostname + req.originalUrl, site.protocol, site.port);
    res.locals.site = site;

    next();
  };
}
function addSiteData(site) {
  return (req, res, next) => {
    res.locals.url = uriToUrl(req.hostname + req.originalUrl, site.protocol, site.port);
    res.locals.site = site;

    next();
  };
}
function addSiteData ( site ) { return ( req , res , next ) => { res . locals . url = uriToUrl ( req . hostname + req . originalUrl , site . protocol , site . port ) ; res . locals . site = site ; next ( ) ; } ; }
Add site data to locals for each site
@param {Object} site
@returns {Function}
Add site data to locals for each site