Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.delete('/url/:id', (req, res, next) => {
- pessoas.findByIdAndRemove({_id: req.params.id}).then(function(pessoas){
- res.send(pessoas);
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement