Here the delete function
const DeletePost = (id) => {
console.log(id);
axios.delete(`${BASE_URL}/futureevents/delete/${id}`)
.then(res => {
console.log("success");
})
.catch(err => {
console.log(err);
})
}
console log display id ,but ID not going to backend. When I use postmen, then work properly. what is the error in above function?