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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user