石墨消解仪后端用nodejs编写,与嵌入式端交互和前端交互均用ws
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.

18 lines
493 B

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. const Router = require("koa-router");
  2. const router = new Router({ prefix: "/chicken" });
  3. const { auth, hasAdminPermission } = require("../middleware/auth.middleware");
  4. const { add, info, all, batchs } = require("../controller/chicken.controller");
  5. router.post("/add", auth, add);
  6. // 根据id获取新进鸡苗记录详情。
  7. router.get("/info", auth, info);
  8. // 根据条件查询新进记录
  9. router.post("/all", auth, all);
  10. router.get("/batchs", auth, batchs);
  11. module.exports = router;