github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/server/build.go (about)

     1  package server
     2  
     3  import (
     4  	"net/http"
     5  
     6  	"github.com/pyroscope-io/pyroscope/pkg/build"
     7  )
     8  
     9  func (*Controller) buildHandler(w http.ResponseWriter, _ *http.Request) {
    10  	w.Header().Set("Content-Type", "application/json")
    11  	_, _ = w.Write([]byte(build.PrettyJSON()))
    12  }