Files
AFFiNE-Mirror/packages/workspace/src/affine/api/status.ts
2023-06-30 16:17:24 +08:00

11 lines
281 B
TypeScript

/**
* @deprecated Remove this file after we migrate to the new cloud.
*/
export function createStatusApis(prefixUrl = '/') {
return {
healthz: async (): Promise<boolean> => {
return fetch(`${prefixUrl}api/healthz`).then(r => r.status === 204);
},
} as const;
}