index.js
function createEndpointFromPath(path, query, filePath) {
  filePath = filePath || path;
  return createEndpointFromObject(path, query, getJSON(filePath));
}
function createEndpointFromPath(path, query, filePath) {
  filePath = filePath || path;
  return createEndpointFromObject(path, query, getJSON(filePath));
}
function createEndpointFromPath ( path , query , filePath ) { filePath = filePath || path ; return createEndpointFromObject ( path , query , getJSON ( filePath ) ) ; }
Registers an endpoint using the file at the given path as the response body.

If filePath is not provided, path will be used as the file location.
Registers an endpoint using the file at the given path as the response body .