Update README with build instructions for Windows and refactor agent handlers. Replace handleIndex with handleWeb in Serve method, and remove handleIndex function from handlers.go.

This commit is contained in:
2026-08-18 16:55:42 +03:00
parent f0515d7342
commit 4795c25da7
7 changed files with 458 additions and 10 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ func (a *Agent) Close() {
func (a *Agent) Serve() error {
mux := http.NewServeMux()
mux.HandleFunc("/", a.handleIndex)
mux.HandleFunc("/", a.handleWeb)
mux.HandleFunc("/health", a.handleHealth)
mux.HandleFunc("/healthz", a.handleHealth)
mux.HandleFunc("/openapi.json", a.handleOpenAPI)