- Implemented a new endpoint for creating audit logs directly from the frontend, allowing for detailed tracking of actions related to screen copying. - Enhanced the existing screen management functionality by removing redundant audit logging within the copy operations and centralizing it through the new createAuditLog endpoint. - Updated the frontend to log group copy actions, capturing relevant details such as resource type, resource ID, and changes made during the operation. Made-with: Cursor
13 lines
490 B
TypeScript
13 lines
490 B
TypeScript
import { Router } from "express";
|
|
import { authenticateToken } from "../middleware/authMiddleware";
|
|
import { getAuditLogs, getAuditLogStats, getAuditLogUsers, createAuditLog } from "../controllers/auditLogController";
|
|
|
|
const router = Router();
|
|
|
|
router.get("/", authenticateToken, getAuditLogs);
|
|
router.get("/stats", authenticateToken, getAuditLogStats);
|
|
router.get("/users", authenticateToken, getAuditLogUsers);
|
|
router.post("/", authenticateToken, createAuditLog);
|
|
|
|
export default router;
|