Question:
I have already done this but Idk why when I try to apply it again in another code it does not work. So I have this code “Client side”Answer:
The request to your API is made, but you are not adding anything to the request body. I think you need to change yourDATA
property in your fetch call to body
:axios.get()
method in your API handler, I assume it’s supposed to be a URL?If you have better answer, please add a comment about this, thank you!