Wire all dashboard buttons: auth downloads, get_log feedback, action tests.
This commit is contained in:
@@ -92,9 +92,9 @@ export const api = {
|
||||
sendAgentCommand: (
|
||||
id: string,
|
||||
action: string,
|
||||
payload?: { tail_lines?: number; command?: string; path?: string; data?: string }
|
||||
payload?: Record<string, unknown>
|
||||
) =>
|
||||
fetchJSON<{ success: boolean }>(`/agents/${id}/command`, {
|
||||
fetchJSON<{ success: boolean; error?: string }>(`/agents/${id}/command`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ action, ...payload }),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user