Update API routes and sensor data functionality And API.ejs

This commit is contained in:
newtbot
2024-01-30 02:59:14 +08:00
parent 8836a3cfd4
commit 129ca202c0
10 changed files with 849 additions and 176 deletions

View File

@ -12,6 +12,7 @@ router.get("/", async (req, res, next) => {
res.json(Res);
});
/*
//get by route name?
router.get("/route/:name", async (req, res, next) => {
});
@ -27,6 +28,8 @@ router.get("/method/:method", async (req, res, next) => {
//by ip
router.get("/ip/:ip", async (req, res, next) => {
});
*/