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
18 lines
493 B
const Router = require("koa-router");
|
|
|
|
const router = new Router({ prefix: "/chicken" });
|
|
|
|
const { auth, hasAdminPermission } = require("../middleware/auth.middleware");
|
|
const { add, info, all, batchs } = require("../controller/chicken.controller");
|
|
|
|
router.post("/add", auth, add);
|
|
|
|
// 根据id获取新进鸡苗记录详情。
|
|
router.get("/info", auth, info);
|
|
|
|
// 根据条件查询新进记录
|
|
router.post("/all", auth, all);
|
|
|
|
router.get("/batchs", auth, batchs);
|
|
|
|
module.exports = router;
|