Assuming the URL is something like:
http://localhost:5000/uploads?userId=63f2642a765785448b65g5f1
And we want to read the userId in our Node.js/Express backend, this can be achieved with
req.query.userId
In action:
router.get("/", async (req, res) => { const userId = req.query.userId; console.log(userId); });