mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-05 21:01:50 +08:00
fix: remove application fingerprints from public responses
This commit is contained in:
1 parent
c0b558fa1e
commit
5203176364
9 files changed
+195
-20
No files matched your search
+3
-2
@@ -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 ----
|
||||
|
||||
Reference in new issue
Block a user