service.js
function synthesizeUrl(serviceConfig, req, res) {
  const parameters = _.map(serviceConfig.getParameters(req, res), (value, key) => {
    return `${key}=${value}`;
  }).join('&');

  if (parameters) {
    return encodeURI(`${serviceConfig.getUrl(req)}?${parameters}`);
  } else {
    return serviceConfig.getUrl(req);
  }

}
function synthesizeUrl(serviceConfig, req, res) {
  const parameters = _.map(serviceConfig.getParameters(req, res), (value, key) => {
    return `${key}=${value}`;
  }).join('&');

  if (parameters) {
    return encodeURI(`${serviceConfig.getUrl(req)}?${parameters}`);
  } else {
    return serviceConfig.getUrl(req);
  }

}
function synthesizeUrl ( serviceConfig , req , res ) { const parameters = _ . map ( serviceConfig . getParameters ( req , res ) , ( value , key ) => { return ` ${ key } ${ value } ` ; } ) . join ( '&' ) ; if ( parameters ) { return encodeURI ( ` ${ serviceConfig . getUrl ( req ) } ${ parameters } ` ) ; } else { return serviceConfig . getUrl ( req ) ; } }
superagent doesn't exposed the assembled GET request, so synthesize it
superagent doesn t exposed the assembled GET request so synthesize it