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