fix(server-go): 健康画像路由与 /rooms/:id 冲突导致启动 panic,改 /health-profiles/:roomId

This commit is contained in:
weijuesen
2026-08-13 14:28:41 +08:00
parent ccda60e50b
commit 725d98aac5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ import (
// RegisterHealthRoutes 注册蚕房健康画像路由
func RegisterHealthRoutes(rg *gin.RouterGroup, db *gorm.DB) {
rg.GET("/rooms/:id/health-profile",
rg.GET("/health-profiles/:roomId",
middleware.RequirePermission(db, "room:read"),
roomHealthProfile(db))
}