Next.js Discord

Discord Forum

How do I go about sending the user object to the backend?

Unanswered
Yacare Caiman posted this in #help-forum
Open in Discord
Avatar
Yacare CaimanOP
Basically I want to send the object but I don't know what to use, what I want would be to use a res.send(user) but this is not possible. The data returns it to me, but it is not sent to the backend xd
Image

2 Replies

Avatar
Yacare CaimanOP
someone knows? xd
Avatar
Alfonsus Ardani
https://nextjs.org/docs/app/building-your-application/routing/router-handlers
theres many example here on how to return the Response from the back-end
hope it helps