src/client/createProxiedMethod.js
function buildEndpoint(config, path) {
  var host = config.host;
  var port = config.port;

  if (!host) throw new Error('No host is specified in proxied method config');

  var base = host + (port ? ':' + port : '');
  var fullpath = '/isomorphine/' + path;
  var endpoint = base + fullpath;

  debug('Built endpoint: ' + endpoint);

  return endpoint;
}
function buildEndpoint(config, path) {
  var host = config.host;
  var port = config.port;

  if (!host) throw new Error('No host is specified in proxied method config');

  var base = host + (port ? ':' + port : '');
  var fullpath = '/isomorphine/' + path;
  var endpoint = base + fullpath;

  debug('Built endpoint: ' + endpoint);

  return endpoint;
}
function buildEndpoint ( config , path ) { var host = config . host ; var port = config . port ; if ( ! host ) throw new Error ( 'No host is specified in proxied method config' ) ; var base = host + ( port ? ':' + port : '' ) ; var fullpath = '/isomorphine/' + path ; var endpoint = base + fullpath ; debug ( 'Built endpoint: ' + endpoint ) ; return endpoint ; }
Builds a method's API endpoint.

@param  {Object}  config  The host and port parameters to use.
@param  {String}  path    The path to the serverside method.
@return {String}          The endpoint to request.
Builds a method s API endpoint .