request.query help needed.

Desperately needing some guidance with this, I've tried multiple implementations of this code with no success. I'm struggling to get the request.query to get the userId. Am i doing this correctly? Any help will be greatly appreciated 🙏🏼
3 Replies
dollahane23033
This is my api folder structure.
Matvey
Matvey2y ago
the second argument to the GET function is not response, it's context. The userId is in context.params.userId
dollahane23033
that worked, thanks so much! 🙏🏼
Want results from more Discord servers?
Add your server