Update index.js

Fixed to apply to /get/:id, not /get