Closed alex-sl-eng closed 10 years ago
Please keep all the implementations for "Real endpoints", and only change the path for "Fake endpoints". To make another endpoint use the same file, use endpoint(<endpoint-path>, null, getJSON(<original-endpoint-path>));
. If you are making several of them, you might as well add this function to make them:
/**
* Create an endpoint at aliasPath using the data from originalPath.
*/
function alias(aliasPath, originalPath) {
return endpoint(aliasPath, null, getJSON(originalPath));
}
Still a few of the real endpoints that are being removed by this PR.