mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-10 05:02:45 +01:00
return 200 from server on successful delete
This commit is contained in:
parent
90809bf05d
commit
42be528c90
@ -100,6 +100,7 @@ app.post('/delete/:id', (req, res) => {
|
||||
.then(err => {
|
||||
if (!err) {
|
||||
console.log('Deleted.');
|
||||
res.sendStatus(200);
|
||||
}
|
||||
})
|
||||
.catch(err => res.sendStatus(404));
|
||||
|
Loading…
Reference in New Issue
Block a user