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), + }); + } }