Advertisement
Guest User

delete1

a guest
Feb 22nd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. app.delete('/url/:id', (req, res, next) => {
  2. pessoas.findByIdAndRemove({_id: req.params.id}).then(function(pessoas){
  3. res.send(pessoas);
  4. });
  5. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement