/** * 작업 이력 관리 라우트 */ import express from 'express'; import * as workHistoryController from '../controllers/workHistoryController'; const router = express.Router(); // 작업 이력 목록 조회 router.get('/', workHistoryController.getWorkHistories); // 작업 이력 통계 조회 router.get('/stats', workHistoryController.getWorkHistoryStats); // 월별 추이 조회 router.get('/trend', workHistoryController.getMonthlyTrend); // 주요 운송 경로 조회 router.get('/routes', workHistoryController.getTopRoutes); // 작업 이력 단건 조회 router.get('/:id', workHistoryController.getWorkHistoryById); // 작업 이력 생성 router.post('/', workHistoryController.createWorkHistory); // 작업 이력 수정 router.put('/:id', workHistoryController.updateWorkHistory); // 작업 이력 삭제 router.delete('/:id', workHistoryController.deleteWorkHistory); export default router;