feat: add /api/sample route #2

Merged
hbk01 merged 1 commits from hbk01/labplus-server:main into main 2024-10-13 22:58:28 +08:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 8bffef5ffe - Show all commits

View File

@@ -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 },
// 送样时间 // 送样时间

View File

@@ -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