Displaying data from mongoose in table. How to make Delete Button to work properly, to delete selected element from table
index.html
<div class="col-md-12 column list-group">
index.js
router.post('/delete', function(req, res, next) {
var id = req.body.id;
Standup.findByIdAndRemove(id).exec();
res.redirect('/');
});
via perija
No comments:
Post a Comment