I\'m trying to implement update functionality to an Express.js app, and I\'d like to use a PUT request to send the new data, but I keep getting errors using PUT. From every
Your callback function has the arguments in the wrong order.
Change the order of callback to function(req, res). Don't use function(res, req).
function(req, res)
function(res, req)