node.jsexpress

How to get parameter for delete request in express node js


I am fresher to nodejs. How to get the value parameter pass via Delete request? I am using node express js. Thanks in advs


Solution

  • You may use "req.body" to get the value of you send

    eg:

    router.delete('/test',function(req,res){
         res.send(req.body.data);
    });