decompose structure
This commit is contained in:
8
src/entities/health/api.ts
Normal file
8
src/entities/health/api.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { getJson } from '../../shared/api/http';
|
||||
import { cloudApiUrl } from '../../shared/config/env';
|
||||
import type { HealthResponse } from './types';
|
||||
|
||||
/** Запрашивает состояние cloud-v3 и подключенной базы данных. */
|
||||
export function getHealth(): Promise<HealthResponse> {
|
||||
return getJson<HealthResponse>(cloudApiUrl, '/health');
|
||||
}
|
||||
Reference in New Issue
Block a user