In this part, we are changing the HTTP DELETE method. Follow these instructions to change the deleteHttp function:
- Open the fetchApi.js file inside the http folder.
- On the deleteHttp function, we will change the body argument to data, and remove the currying functions:
export const deleteHttp = async (
url,
data,
options,
) => baseHttp(url,
'delete',
{
data,
...options,
});