fetch api side with argument
Unanswered
Checkered Giant posted this in #help-forum
Checkered GiantOP
i wana fetch my api side with argument, someone tell me i have to use post method, and i dont know how can i use argument to fetch my db with api fetching, can someone help me plz?
4 Replies
Checkered GiantOP
does someone have an idea about why?
you can post with "body" to pass in objects about any info regarding your post request
or you can just add the added parameters to the serach params
or you can just add the added parameters to the serach params
@Alfonsus Ardani you can post with "body" to pass in objects about any info regarding your post request
or you can just add the added parameters to the serach params
Checkered GiantOP
i know but i cant find a code working, do you have a code exemple or somethings like?
its a pretty common implementation that is widely used even outside of next.js