Código
deleteObject(req, res) { Obecjt.findByIdAndRemove({ _id: req.body.id }).then(doc => { res.json({ ok: true }) }, err => { res.status(500).json({ error: 'Error al borrar ' + req.body.id }) }) }
|
|||
Tema destacado: Únete al Grupo Steam elhacker.NET |
|
|