Account itself deletable

This commit is contained in:
2024-11-04 19:05:14 +01:00
parent 07c4b7ba80
commit 1088060580
6 changed files with 27 additions and 11 deletions

View File

@@ -139,3 +139,14 @@ account.patch("/", (req: Request, res: Response) => {
})
})
})
account.delete("/:id", (req: Request, res: Response) => {
Account.destroy({
where: {
id: req.params.id
}
})
.then(account => {
res.status(200).send()
})
})