接入前端P0页面真实接口
This commit is contained in:
6
client/src/services/healthService.ts
Normal file
6
client/src/services/healthService.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { getJson } from '@/services/httpClient'
|
||||
import type { BackendHealthResult } from '@/types/reservation'
|
||||
|
||||
export async function fetchBackendHealth(): Promise<BackendHealthResult> {
|
||||
return getJson<BackendHealthResult>('/api/health')
|
||||
}
|
||||
Reference in New Issue
Block a user