I am trying to send a delete request to my Express server from Angular.
remove: function (id) {
return $http({
method: 'DELETE',
url: '/users/delete/'+ id
})
}
In my Express server, I have the following code:
router.delete("/delete/:id", cors(), function(req, res){
console.log("server");
})
The issue I am facing is that I keep getting a 404 error. To handle this request, I am using the methodOverride module on my server.