When I apply a filter, the query in the API disappears. A PHP developer suggested that the request should be GET instead of POST. How can I pass parameters to the GET query?
Here is an example of my POST request:
export const filterDate = (options) => {
console.log(options)
return axios.post(url, options).then(({ data }) => {
if (data.errors) throw new Error(JSON.stringify(data.errors));
return data;
})
};
However, when I replace the post with get, the parameters are not transferred.