2024-05-10 13:36:04 -07:00
|
|
|
const router = require("express").Router();
|
|
|
|
|
const monitorController = require("../controllers/monitorController");
|
|
|
|
|
router.get("/", monitorController.getAllMonitors);
|
|
|
|
|
router.get("/:monitorId", monitorController.getMonitorById);
|
2024-05-10 13:59:33 -07:00
|
|
|
router.get("/user/:userId", monitorController.getMonitorsByUserId);
|
2024-05-10 13:36:04 -07:00
|
|
|
|
|
|
|
|
module.exports = router;
|