This commit is contained in:
newtbot
2024-01-10 03:30:53 +08:00
parent ce2b776920
commit aa79f2873f
6 changed files with 526 additions and 74 deletions

View File

@ -20,6 +20,7 @@ router.get("/", async (req, res, next) => {
next(error);
}
});
/*
router.post("/new", async (req, res, next) => {
try {
@ -53,7 +54,7 @@ router.delete("/delete", async (req, res, next) => {
next(error);
}
});
*/
router.get("/:id", async (req, res, next) => {
try {
const sensor = await getSensorById(req.params.id);