This commit is contained in:
jslightham
2020-04-07 01:41:02 -04:00
parent 9fd76cfed5
commit 1571b76967
8 changed files with 464 additions and 162 deletions

View File

@@ -73,4 +73,13 @@ let Att = require('./attendee.model');
});
});
attendanceRoute.route('/delete').post(function (req, res) {
//console.log(req.body.id);
Att.findByIdAndRemove({_id: req.body.id}, function(err){
if(err) res.json(err);
else res.json('Successfully removed');
});
});
module.exports = attendanceRoute;