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-12 20:18:22 +00:00
|
|
|
iamRoutesEL.post("/IAM/users", verifyAPIKey, IAMControllerEL.createUser);
|
|
|
|
iamRoutesEL.put("/IAM/users", verifyAPIKey, IAMControllerEL.updateUser);
|
|
|
|
iamRoutesEL.delete("/IAM/users", verifyAPIKey, IAMControllerEL.deleteUser);
|
|
|
|
iamRoutesEL.get("/IAM/users/check", verifyAPIKey, IAMControllerEL.checkUser);
|
2024-03-12 15:46:12 +00:00
|
|
|
|
2024-03-12 20:18:22 +00:00
|
|
|
iamRoutesEL.patch("/IAM/users/rights/link", verifyAPIKey, IAMControllerEL.linkUserRight);
|
|
|
|
iamRoutesEL.patch("/IAM/users/rights/unlink", verifyAPIKey, IAMControllerEL.unlinkUserRight);
|
|
|
|
iamRoutesEL.post("/IAM/users/rights/check", verifyAPIKey, IAMControllerEL.checkUserRight);
|
2024-03-12 15:46:12 +00:00
|
|
|
|
2024-03-12 20:18:22 +00:00
|
|
|
iamRoutesEL.patch("/IAM/users/reset-password", verifyAPIKey, IAMControllerEL.resetPassword);
|
2024-03-12 15:46:12 +00:00
|
|
|
|
|
|
|
export default iamRoutesEL;
|