Implement KPI daily production feature
- Added a new KPI controller to handle daily production data retrieval. - Created routes for accessing KPI data, specifically for daily production. - Developed frontend components for displaying daily production metrics, including charts and summary cards. - Implemented data fetching logic with date range filtering for production data. - Ensured proper loading states and error handling in the UI. This feature is part of TASK:ERP-022.
This commit is contained in:
13
backend-node/src/routes/kpiRoutes.ts
Normal file
13
backend-node/src/routes/kpiRoutes.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* KPI 라우트 — TASK:ERP-022
|
||||
*/
|
||||
import { Router } from "express";
|
||||
import { authenticateToken } from "../middleware/authMiddleware";
|
||||
import * as ctrl from "../controllers/kpiController";
|
||||
|
||||
const router = Router();
|
||||
router.use(authenticateToken);
|
||||
|
||||
router.get("/daily-production", ctrl.getDailyProduction);
|
||||
|
||||
export default router;
|
||||
Reference in New Issue
Block a user