Skip to content

Commit 371aff5

Browse files
committed
fix: แก้ลำดับ route alert
1 parent 5406ef3 commit 371aff5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

server/src/routes/alerts.routes.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ import * as ctrl from "../controllers/alerts.controller";
3636

3737
const router = Router();
3838

39+
/* ========================== Recent ========================== */
40+
router.get("/recent", ctrl.getRecentCameraAlert);
41+
3942
/* ========================== Alerts ========================== */
4043
router.get("/", ctrl.getAlerts);
4144
router.post("/", ctrl.createAlert);
@@ -52,8 +55,4 @@ router.patch("/notes/:anh_id", ctrl.softDeleteAlertNote);
5255
/* ========================== Logs ========================== */
5356
router.get("/:alr_id/logs", ctrl.getAlertLogs);
5457

55-
/* ========================== Recent ========================== */
56-
router.get("/recent", ctrl.getRecentCameraAlert);
57-
58-
5958
export default router;

0 commit comments

Comments
 (0)