delete /item
This commit is contained in:
@ -253,6 +253,16 @@ router.delete("/group", async(req, res) => {
|
||||
}
|
||||
});
|
||||
|
||||
router.delete("/item", async(req, res) => {
|
||||
try {
|
||||
res.status(200).send(await postgres.deleteItem(req.body.item_id, req.body.group.id, req.body.sl_id));
|
||||
}
|
||||
|
||||
catch(err) {
|
||||
res.status(400).send(await err);
|
||||
}
|
||||
});
|
||||
|
||||
// Invite System
|
||||
|
||||
router.post("/invite", async (req, res) => {
|
||||
|
Reference in New Issue
Block a user