fix: remove application fingerprints from public responses

This commit is contained in:
ji ruo committed 2026-11-03 14:48:41 +08:00
1 parent c0b558fa1e
commit 5203176364
9 files changed
+195 -20

No files matched your search

+3 -2
View File
@@ -318,8 +318,9 @@ function schedulePayload(input: ScheduleInput) {
}
export const api = {
// 后端应用版本号(release 时由 ldflags 注入,默认 "dev")。
health: () => get<{ ok: boolean; service: string; version: string }>("/health"),
// 公开健康检查不返回应用名称或版本;版本号仅向已登录管理员提供。
health: () => get<{ ok: boolean }>("/health"),
version: () => http<{ version: string }>("/version", { cache: "no-store" }),
systemMetrics: () => get<SystemMetrics>("/system/metrics"),
// ---- auth ----