location updates saved to db and base endpoints for other modules started

This commit is contained in:
Shibi Chakkaravarthy
2026-04-18 04:15:23 +05:30
parent 92769cfd38
commit eb84767d44
12 changed files with 167 additions and 44 deletions
+3 -11
View File
@@ -3,9 +3,7 @@ import { authorize } from "../middlewares/jwt.middleware";
import {
createAccessController,
getAllBranchesController,
getAllDesignationsController,
getAllDepartmentsController,
getAllRolesController,
getAllMetadataController,
createBranchController,
createDepartmentController,
createDesignationController,
@@ -17,16 +15,10 @@ const router = new Router();
router.post("/access", authorize("access", "write"), createAccessController);
router.get("/branches", authorize("branch", "read"), getAllBranchesController);
router.get(
"/designations",
"/metadata",
authorize("designation", "read"),
getAllDesignationsController,
getAllMetadataController,
);
router.get(
"/departments",
authorize("department", "read"),
getAllDepartmentsController,
);
router.get("/roles", authorize("role", "read"), getAllRolesController);
router.post("/branch", authorize("branch", "write"), createBranchController);
router.post(
"/department",