feat(forklifts): added the ability to add new forklifts in

This commit is contained in:
2025-11-20 17:51:06 -06:00
parent 7b28f4e9ef
commit 7b6c9bdfbf
9 changed files with 710 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
import { Router } from "express";
import { requireAuth } from "../../../../pkg/middleware/authMiddleware.js";
import addHours from "./addHours.js";
import gethours from "./getHours.js";
const router = Router();
router.use(
"/",
requireAuth("forklifts", ["systemAdmin", "admin", "manager", "supervisor"]),
addHours,
);
router.use(
"/",
requireAuth("forklifts", ["systemAdmin", "admin", "manager", "supervisor"]),
gethours,
);
export default router;