Add node selection functionality to InstanceSettingsCard and define Node API

This commit is contained in:
2025-10-02 23:18:33 +02:00
parent 670f8ff81b
commit a491f29483
3 changed files with 69 additions and 1 deletions

View File

@@ -106,6 +106,21 @@ export const backendsApi = {
},
};
// Node API types
export interface NodeResponse {
name: string;
address: string;
}
// Node API functions
export const nodesApi = {
// GET /nodes
list: () => apiCall<NodeResponse[]>("/nodes"),
// GET /nodes/{name}
get: (name: string) => apiCall<NodeResponse>(`/nodes/${name}`),
};
// Instance API functions
export const instancesApi = {
// GET /instances