javascript - how do I read data(object) from params in express? -
i trying read object being sent parameter in delete request.
router.delete('/deletebranch/:id',(req,res)=>{ console.log(req.params.id); }); //what [object object] //what need { schoolid:03746, branchid:23231 }
i getting [object object] in console. instead of , want print key-values in console . can me? in advance!
Comments
Post a Comment