test: health check (#1743)

This commit is contained in:
Himself65
2023-03-29 15:46:10 -05:00
committed by GitHub
parent 9cd59d9146
commit 68144fb2dc
2 changed files with 14 additions and 0 deletions

View 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;
}