From c8f4705c5c4cbcf30e23f933ea58cb61420a8921 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Tue, 23 Dec 2025 12:09:57 +0000 Subject: [PATCH] Polish: Standardize agent command API usage --- frontend-modern/src/api/nodes.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend-modern/src/api/nodes.ts b/frontend-modern/src/api/nodes.ts index 1a45127d6..c45c227c2 100644 --- a/frontend-modern/src/api/nodes.ts +++ b/frontend-modern/src/api/nodes.ts @@ -76,4 +76,14 @@ export class NodesAPI { method: 'POST', }); } + + static async getAgentInstallCommand(params: { + type: 'pve'; + enableProxmox: boolean; + }): Promise<{ command: string }> { + return apiFetchJSON('/api/agent-install-command', { + method: 'POST', + body: JSON.stringify(params), + }); + } }