I need to retrieve data based on a date. I tested my route with Postman and everything works fine. However, when I do my axios query with a date, it returns an empty array. I understood that it would be a date format problem with axios, but I couldn't solve it. Could you help me please?
Here is my code in the front:
const getDailyWorking =()=>{
let datas={
activity_creationTimestamp: ('2022-06-28'),
user_id:1
}
console.log(datas)
return axios.get(config.api_url+'/dailyWork', datas).then((response)=>{
console.log(response.data)
}).catch((err)=>{
console.log(err)
})
}
axios.getmethod takes axios config not data)console.log(response.data)