You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
526 B
21 lines
526 B
import express from "express";
|
|
import { delay } from "../utils/helper";
|
|
import { calibrationController } from "../controllers/calibration";
|
|
|
|
const router = express.Router();
|
|
|
|
router.post("/list", async (req, res) => {
|
|
const data = calibrationController.list();
|
|
// await delay(1500);
|
|
res.json({
|
|
status: 0,
|
|
data,
|
|
});
|
|
});
|
|
router.post("/delete/:ids", async (req, res) => {
|
|
calibrationController.delete(req.params["ids"].split(",").map(n => +n));
|
|
res.json({
|
|
status: 0,
|
|
});
|
|
});
|
|
export default router;
|