mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-24 12:13:28 +00:00
Polish: Standardize agent command API usage
This commit is contained in:
@@ -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),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user