(rw http.ResponseWriter, r *http.Request)
| 616 | } |
| 617 | |
| 618 | func (s *Server) buildInfo(rw http.ResponseWriter, r *http.Request) { |
| 619 | httpapi.Write(r.Context(), rw, http.StatusOK, codersdk.BuildInfoResponse{ |
| 620 | ExternalURL: buildinfo.ExternalURL(), |
| 621 | Version: buildinfo.Version(), |
| 622 | AgentAPIVersion: coderd.AgentAPIVersionREST, |
| 623 | DashboardURL: s.DashboardURL.String(), |
| 624 | WorkspaceProxy: true, |
| 625 | }) |
| 626 | } |
| 627 | |
| 628 | // healthReport is a more thorough health check than the '/healthz' endpoint. |
| 629 | // This endpoint not only responds if the server is running, but can do some |
nothing calls this directly
no test coverage detected