code: function createEndpointFromPath(path, query, filePath) {
    filePath = filePath || path;
    return createEndpointFromObject(path, query, getJSON(filePath));
  }
docs: 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.