fix(server-go): 健康画像路由与 /rooms/:id 冲突导致启动 panic,改 /health-profiles/:roomId
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user