mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-03-30 05:21:57 +00:00
fix(frontend): 修复重启后健康检查接口路径错误
将 /api/health 改为 /health,与后端实际注册的路由一致
This commit is contained in:
@@ -491,7 +491,7 @@ async function checkServiceAndReload() {
|
||||
|
||||
for (let i = 0; i < maxRetries; i++) {
|
||||
try {
|
||||
const response = await fetch('/api/health', {
|
||||
const response = await fetch('/health', {
|
||||
method: 'GET',
|
||||
cache: 'no-cache'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user