This commit is contained in:
lik
2026-11-06 21:01:56 +08:00
parent af9a1543ae
commit adaf10376d
3 changed files with 43 additions and 1 deletions
+2
View File
@@ -124,6 +124,8 @@ function registerRoutes(app) {
// 以下为管理端档案接口(C 端一律走 /mine),必须管理员
router.get("/health-profile", requireAuth, requireAdmin, handlerHealthProfile.getProfiles.bind(handlerHealthProfile));
// 批量统计就诊人数量,必须注册在 /health-profile/:id 之前,否则会被当成 id
router.get("/health-profile/counts", requireAuth, requireAdmin, handlerHealthProfile.getProfileCounts.bind(handlerHealthProfile));
router.get("/health-profile/:id", requireAuth, requireAdmin, handlerHealthProfile.getProfileById.bind(handlerHealthProfile));
router.post("/health-profile", requireAuth, requireAdmin, handlerHealthProfile.createProfile.bind(handlerHealthProfile));
router.put("/health-profile/:id", requireAuth, requireAdmin, handlerHealthProfile.updateProfile.bind(handlerHealthProfile));