index.js
function endpointWithAlias(path, aliasPath) {
  return function () {
    endpoint(path)();
    endpoint(aliasPath, null, getJSON(path))();
  }
}
function endpointWithAlias(path, aliasPath) {
  return function () {
    endpoint(path)();
    endpoint(aliasPath, null, getJSON(path))();
  }
}
function endpointWithAlias ( path , aliasPath ) { return function ( ) { endpoint ( path ) ( ) ; endpoint ( aliasPath , null , getJSON ( path ) ) ( ) ; } }
Create a thunk that registers multiple endpoints that use the same data.

The path of the JSON file in the mock directory must be the same as the first
path argument.

@path Local portion of endpoint path.
@aliasPath Alternative path that will return the same data as the first path.
Create a thunk that registers multiple endpoints that use the same data .