feat(forklifts): added the ability to add new forklifts in
This commit is contained in:
20
app/src/internal/forklifts/routes/hours/leaseRoutes.ts
Normal file
20
app/src/internal/forklifts/routes/hours/leaseRoutes.ts
Normal 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;
|
||||
Reference in New Issue
Block a user