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