Can you hide the parameters in a API request?
For example, I have this request: http://localhost:8000/api/v1/user/6639377e89b62ab3c170a2c0 and I don’t want that ID to be visible in dev tools or anywhere else. This ID is of a random user in the database, so I can’t get away using authentication (req.user
).
My route looks like this: “/api/v1/user/:id” and I hopefully can do something like this: “/api/v1/user/”.
Can I even achieve such a thing? Or is there an npm package for this?
1