Compare commits
2 Commits
d3a40a04ab
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| ba08d5a499 | |||
|
8bffef5ffe
|
@@ -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