Account itself deletable
This commit is contained in:
1 parent
07c4b7ba80
commit
1088060580
6 files changed
+27
-11
No files matched your search
@@ -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()
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user