I have this in my express
router.put('/admin/profile?:id/actions', (req, res) => {
console.log(req.body.actions)
});
and in postman I do a PUT request
http://localhost:3000/api/admin/58fb442234c93715b435395/actions
with actions as key like
actions:approve
but I get cannot PUT error? I'm expecting 'approve' in my node's console.
via Jenny Mok
No comments:
Post a Comment