updated endpoints.js example to include path.