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