mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
8 lines
206 B
TypeScript
8 lines
206 B
TypeScript
export function createStatusApis(prefixUrl = '/') {
|
|
return {
|
|
healthz: async (): Promise<boolean> => {
|
|
return fetch(`${prefixUrl}api/healthz`).then(r => r.status === 204);
|
|
},
|
|
} as const;
|
|
}
|