Add startup management functionality to the agent. Implement API endpoints for enabling and disabling startup, and update the web interface to reflect the current startup state.

This commit is contained in:
2026-08-18 17:06:20 +03:00
parent 15f7fd91ab
commit f24e31da27
6 changed files with 127 additions and 8 deletions
+1
View File
@@ -62,6 +62,7 @@ func (a *Agent) Serve() error {
mux.HandleFunc("/api/v1/download", a.handleDownload)
mux.HandleFunc("/api/v1/screenshot", a.handleScreenshot)
mux.HandleFunc("/api/v1/exec", a.handleExec)
mux.HandleFunc("/api/v1/startup", a.handleStartup)
a.server = &http.Server{
Addr: a.addr,