mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 22:20:55 +03:00
return 200 from server on successful delete
This commit is contained in:
@@ -100,6 +100,7 @@ app.post('/delete/:id', (req, res) => {
|
|||||||
.then(err => {
|
.then(err => {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
console.log('Deleted.');
|
console.log('Deleted.');
|
||||||
|
res.sendStatus(200);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(err => res.sendStatus(404));
|
.catch(err => res.sendStatus(404));
|
||||||
|
|||||||
Reference in New Issue
Block a user