diff --git a/routes/api.js b/routes/api.js index 978b269..476e03c 100644 --- a/routes/api.js +++ b/routes/api.js @@ -123,6 +123,20 @@ router.post('/deleteFileMongo', function(req, res, next) { }); }); +/* DELETE FILE */ +router.post('/deleteUserMongo', function(req, res, next) { + console.log(JSON.stringify(req.body)); + User.remove({_id : req.body._id, name: req.body.name}, function (err, post) { + if (err){ + + return next(err); + } + + res.json(post); + + }); +}); + /* DELETE FOLDER */ router.post('/deleteFolderMongo', function(req, res, next) { FolderMongo.remove({_id : req.body._id, name: req.body.name, owner: req.body.owner}, function (err, post) { diff --git a/src/app/book/book.component.html b/src/app/book/book.component.html index 0c7df3a..221f71c 100644 --- a/src/app/book/book.component.html +++ b/src/app/book/book.component.html @@ -172,7 +172,7 @@ -