mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-12-04 04:31:51 +08:00
fix: require Basic Auth for health checks
This commit is contained in:
1 parent
5203176364
commit
f053931a1d
7 files changed
+76
-24
No files matched your search
+1
-1
@@ -318,7 +318,7 @@ function schedulePayload(input: ScheduleInput) {
|
||||
}
|
||||
|
||||
export const api = {
|
||||
// 公开健康检查不返回应用名称或版本;版本号仅向已登录管理员提供。
|
||||
// 健康检查受可选 Basic Auth 保护且不返回应用名称或版本;版本号仅向已登录管理员提供。
|
||||
health: () => get<{ ok: boolean }>("/health"),
|
||||
version: () => http<{ version: string }>("/version", { cache: "no-store" }),
|
||||
systemMetrics: () => get<SystemMetrics>("/system/metrics"),
|
||||
|
||||
Reference in new issue
Block a user