mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
test: health check (#1743)
This commit is contained in:
7
packages/workspace/src/affine/api/status.ts
Normal file
7
packages/workspace/src/affine/api/status.ts
Normal file
@@ -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