lib/file-server.js
function getConfiguredPath (path) {
    if (options.useBasePath && context.api && context.api.basePath) {
      return context.api.basePath + path;
    }
    else {
      return path;
    }
  }
function getConfiguredPath (path) {
    if (options.useBasePath && context.api && context.api.basePath) {
      return context.api.basePath + path;
    }
    else {
      return path;
    }
  }
function getConfiguredPath ( path ) { if ( options . useBasePath && context . api && context . api . basePath ) { return context . api . basePath + path ; } else { return path ; } }
Prefixes the given path with the API's basePath, if that option is enabled and the API has a basePath.

@param   {string}    path
@returns {string}
Prefixes the given path with the API s basePath if that option is enabled and the API has a basePath .