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