feat: add /api/sample route #2
@@ -9,7 +9,7 @@ const sampleSchema = new Schema({
|
|||||||
// 批次号字符串 L414-5KR-7-240703
|
// 批次号字符串 L414-5KR-7-240703
|
||||||
batchString: { type: String },
|
batchString: { type: String },
|
||||||
|
|
||||||
// 样品 ID 01
|
// 样品 ID L414-5KR-7-240703-01
|
||||||
id: { type: String },
|
id: { type: String },
|
||||||
|
|
||||||
// 送样时间
|
// 送样时间
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
import express from "express"
|
import express from "express"
|
||||||
import user from "./controllers/user.js"
|
import user from "./controllers/user.js"
|
||||||
|
import sample from "./controllers/sample.js"
|
||||||
|
|
||||||
const router = express.Router({
|
const router = express.Router({
|
||||||
caseSensitive: true
|
caseSensitive: true
|
||||||
})
|
})
|
||||||
|
|
||||||
router.use("/user", user)
|
router.use("/user", user)
|
||||||
|
router.use("/sample", sample)
|
||||||
|
|
||||||
export default router
|
export default router
|
||||||
Reference in New Issue
Block a user