controller
This commit is contained in:
parent
9f2a08ccc9
commit
2609ecc1bf
17 changed files with 320 additions and 95 deletions
|
@ -5,6 +5,7 @@ import {
|
|||
deleteEquipmentById,
|
||||
getAllEquipments,
|
||||
getEquipmentById,
|
||||
getEquipmentsByIds,
|
||||
updateEquipmentById,
|
||||
} from "../../../controller/admin/unit/equipmentController";
|
||||
|
||||
|
@ -18,6 +19,10 @@ router.get("/:id", async (req: Request, res: Response) => {
|
|||
await getEquipmentById(req, res);
|
||||
});
|
||||
|
||||
router.post("/ids", async (req: Request, res: Response) => {
|
||||
await getEquipmentsByIds(req, res);
|
||||
});
|
||||
|
||||
router.post(
|
||||
"/",
|
||||
PermissionHelper.passCheckMiddleware("create", "unit", "equipment"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue