/put item

Item bearbeiten
This commit is contained in:
Lukas Nowy
2019-01-15 17:25:05 +01:00
parent 7fc2ccf040
commit 84705cd155
2 changed files with 46 additions and 1 deletions

View File

@ -233,6 +233,17 @@ router.put("/group", async (req, res) => {
}
});
router.put("/item", async (req, res) => {
try {
res.status(200).send(await postgres.editItem(req.body.sl_id, req.body.group_id, req.body.item_id, req.body.name, req.body.count));
}
catch(err) {
res.status(400).send(await err);
}
});
// Invite System
router.post("/invite", async (req, res) => {