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