mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
11 lines
281 B
TypeScript
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;
|
|
}
|