Implement tags

This commit is contained in:
Zaid Abdulla committed 2018-12-26 00:22:07 -08:00
1 parent 8e128500d0
commit 16b10a698b
7 files changed
+195 -54

No files matched your search

+5
View File
@@ -86,4 +86,9 @@ router.post("/devices/:id/tasks", async ctx => {
ctx.body = res.tasks;
});
router.post("/devices/:id/tags", async ctx => {
await apiFunctions.updateTags(ctx.params.id, ctx.request.body);
ctx.body = "";
});
module.exports = router;