2025-09-25 11:04:16 +09:00
|
|
|
// 배치 실행 로그 라우트
|
|
|
|
|
// 작성일: 2024-12-24
|
|
|
|
|
|
|
|
|
|
import { Router } from "express";
|
|
|
|
|
import { BatchExecutionLogController } from "../controllers/batchExecutionLogController";
|
|
|
|
|
import { authenticateToken } from "../middleware/authMiddleware";
|
|
|
|
|
|
|
|
|
|
const router = Router();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GET /api/batch-execution-logs
|
|
|
|
|
* 배치 실행 로그 목록 조회
|
|
|
|
|
*/
|
|
|
|
|
router.get("/", authenticateToken, BatchExecutionLogController.getExecutionLogs);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* POST /api/batch-execution-logs
|
|
|
|
|
* 배치 실행 로그 생성
|
|
|
|
|
*/
|
|
|
|
|
router.post("/", authenticateToken, BatchExecutionLogController.createExecutionLog);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PUT /api/batch-execution-logs/:id
|
|
|
|
|
* 배치 실행 로그 업데이트
|
|
|
|
|
*/
|
|
|
|
|
router.put("/:id", authenticateToken, BatchExecutionLogController.updateExecutionLog);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* DELETE /api/batch-execution-logs/:id
|
|
|
|
|
* 배치 실행 로그 삭제
|
|
|
|
|
*/
|
|
|
|
|
router.delete("/:id", authenticateToken, BatchExecutionLogController.deleteExecutionLog);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GET /api/batch-execution-logs/latest/:batchConfigId
|
|
|
|
|
* 특정 배치의 최신 실행 로그 조회
|
|
|
|
|
*/
|
|
|
|
|
router.get("/latest/:batchConfigId", authenticateToken, BatchExecutionLogController.getLatestExecutionLog);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GET /api/batch-execution-logs/stats
|
|
|
|
|
* 배치 실행 통계 조회
|
|
|
|
|
*/
|
|
|
|
|
router.get("/stats", authenticateToken, BatchExecutionLogController.getExecutionStats);
|
|
|
|
|
|
|
|
|
|
export default router;
|
2025-09-25 14:25:18 +09:00
|
|
|
|