code: function getUrl(endpoint) {
      var useInternal = typeof options.useInternal === 'boolean' ?
        options.useInternal : false;
  
      return useInternal && endpoint.internalURL
        ? endpoint.internalURL
        : ((typeof options.useAdmin === 'boolean' && options.useAdmin && endpoint.adminURL) ?
          endpoint.adminURL : endpoint.publicURL);
    }
docs: getUrl
  
  @description utility function for getEndpointUrl
  @param {object} endpoint     the endpoint to use
  @param {string} [endpoint.internalURL]     the internal URL of the endpoint
  @param {string} [endpoint.publicURL]       the public URL of the endpoint
  
  @returns {String} the uri of the endpoint