feat: graph 2
ci-front / build (push) Successful in 3m39s

This commit is contained in:
nikita
2026-04-05 09:19:39 +03:00
parent c175461634
commit 915aa7018a
6 changed files with 258 additions and 112 deletions
@@ -15,6 +15,7 @@ import type {
DeployResponse,
SystemMetrics,
} from "../types/agent.types";
import type { GraphApiResponse } from "@/modules/graph/types";
class AgentApiService {
private readonly basePath = "/agents";
@@ -170,6 +171,11 @@ class AgentApiService {
);
return Array.isArray(response.data) ? response.data : [];
}
async getGraph(): Promise<GraphApiResponse> {
const response = await apiClient.get<GraphApiResponse>("/graph");
return response.data;
}
}
export const agentApiService = new AgentApiService();