2024-03-12 15:46:12 +00:00
|
|
|
import { Router } from "express";
|
|
|
|
|
|
|
|
import * as IAMControllerEL from "../controllers/IAMControllerEL";
|
2024-03-12 20:18:22 +00:00
|
|
|
import verifyAPIKey from "../middleware/verifyAPIKey";
|
2024-03-12 15:46:12 +00:00
|
|
|
|
|
|
|
const iamRoutesEL = Router();
|
|
|
|
|
2024-03-18 18:18:18 +00:00
|
|
|
iamRoutesEL.post(
|
|
|
|
"/iam/horacius/createUser",
|
|
|
|
verifyAPIKey,
|
|
|
|
IAMControllerEL.createUser
|
|
|
|
);
|
2024-03-12 15:46:12 +00:00
|
|
|
|
2024-03-18 18:18:18 +00:00
|
|
|
iamRoutesEL.put(
|
|
|
|
"/iam/horacius/updateUser",
|
|
|
|
verifyAPIKey,
|
|
|
|
IAMControllerEL.updateUser
|
|
|
|
);
|
2024-03-12 15:46:12 +00:00
|
|
|
|
2024-03-18 18:18:18 +00:00
|
|
|
iamRoutesEL.delete(
|
|
|
|
"/iam/horacius/deleteUser",
|
|
|
|
verifyAPIKey,
|
|
|
|
IAMControllerEL.deleteUser
|
|
|
|
);
|
|
|
|
|
|
|
|
iamRoutesEL.get(
|
|
|
|
"/iam/horacius/listAllUsers",
|
|
|
|
verifyAPIKey,
|
|
|
|
IAMControllerEL.listAllUsers
|
|
|
|
);
|
|
|
|
|
|
|
|
iamRoutesEL.get(
|
|
|
|
"/iam/horacius/checkUser",
|
|
|
|
verifyAPIKey,
|
|
|
|
IAMControllerEL.checkUser
|
|
|
|
);
|
|
|
|
|
|
|
|
iamRoutesEL.patch(
|
|
|
|
"/iam/horacius/linkUserAndUserRight",
|
|
|
|
verifyAPIKey,
|
|
|
|
IAMControllerEL.linkUserAndUserRight
|
|
|
|
);
|
|
|
|
|
|
|
|
iamRoutesEL.post(
|
|
|
|
"/iam/horacius/linkUserAndUserRight",
|
|
|
|
verifyAPIKey,
|
|
|
|
IAMControllerEL.checkUserRight
|
|
|
|
);
|
|
|
|
|
|
|
|
iamRoutesEL.patch(
|
|
|
|
"/iam/horacius/resetPassword",
|
|
|
|
verifyAPIKey,
|
|
|
|
IAMControllerEL.resetPassword
|
|
|
|
);
|
2024-03-12 15:46:12 +00:00
|
|
|
|
|
|
|
export default iamRoutesEL;
|