Next.js Discord

Discord Forum

How to pass data on DELETE?

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Avatar
Cape lionOP
Hey guys how to pass the data (id) to my api in next js? I know these is achievable by using the [id] on a folder, but just wondering if it is possible without using the [id]
im using axios
Image
Image

2 Replies

Avatar
joulev
you dont have the body so you have to use other parts of the request: request url, request headers
Avatar
Cape lionOP
ah i see, thank you