We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c37a53 commit 53624a1Copy full SHA for 53624a1
internal/api/api.go
@@ -12,6 +12,8 @@ import (
12
"github.com/arduino/arduino-app-cli/internal/update"
13
14
dockerClient "github.com/docker/docker/client"
15
+
16
+ _ "net/http/pprof" //nolint:gosec // pprof import is safe for profiling endpoints
17
)
18
19
//go:embed docs
@@ -27,6 +29,7 @@ func NewHTTPRouter(
27
29
bricksIndex *bricksindex.BricksIndex,
28
30
) http.Handler {
31
mux := http.NewServeMux()
32
+ mux.Handle("GET /debug/", http.DefaultServeMux) // pprof endpoints
33
34
mux.Handle("GET /v1/version", handlers.HandlerVersion(version))
35
mux.Handle("GET /v1/config", handlers.HandleConfig())
0 commit comments