lib/render.js
function renderExpressRoute(req, res, next) {
  var hrStart = process.hrtime(),
    site = res.locals.site,
    prefix = `${getExpressRoutePrefix(site)}/_uris/`,
    pageReference = `${prefix}${buf.encode(req.hostname + req.baseUrl + req.path)}`;

  return module.exports.renderUri(pageReference, req, res, hrStart)
    .catch((error) => {
      if (error.name === 'NotFoundError') {
        log('error', `could not find resource ${req.uri}`, {
          message: error.message
        });
        next();
      } else {
        next(error);
      }
    });
}
function renderExpressRoute(req, res, next) {
  var hrStart = process.hrtime(),
    site = res.locals.site,
    prefix = `${getExpressRoutePrefix(site)}/_uris/`,
    pageReference = `${prefix}${buf.encode(req.hostname + req.baseUrl + req.path)}`;

  return module.exports.renderUri(pageReference, req, res, hrStart)
    .catch((error) => {
      if (error.name === 'NotFoundError') {
        log('error', `could not find resource ${req.uri}`, {
          message: error.message
        });
        next();
      } else {
        next(error);
      }
    });
}
function renderExpressRoute ( req , res , next ) { var hrStart = process . hrtime ( ) , site = res . locals . site , prefix = ` ${ getExpressRoutePrefix ( site ) } ` , pageReference = ` ${ prefix } ${ buf . encode ( req . hostname + req . baseUrl + req . path ) } ` ; return module . exports . renderUri ( pageReference , req , res , hrStart ) . catch ( ( error ) => { if ( error . name === 'NotFoundError' ) { log ( 'error' , ` ${ req . uri } ` , { message : error . message } ) ; next ( ) ; } else { next ( error ) ; } } ) ; }
Run composer by translating url to a "page" by base64ing it.  Errors are handled by Express.

@param {Object} req
@param {Object} res
@param {Function} next
@return {Promise}
Run composer by translating url to a page by base64ing it . Errors are handled by Express .