mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-22 12:36:24 +08:00
test: health check (#1743)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export function createStatusApis(prefixUrl = '/') {
|
||||
return {
|
||||
healthz: async (): Promise<boolean> => {
|
||||
return fetch(`${prefixUrl}api/healthz`).then(r => r.status === 204);
|
||||
},
|
||||
} as const;
|
||||
}
|
||||
Reference in New Issue
Block a user