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