package api // The Hardware tab: what the machine is made of. Read once and remembered — none of it // changes while the kernel runs — with ?refresh=1 for the one thing that can, a drive // plugged in or pulled out. import ( "net/http" ) func (s *Server) hardwareReport(w http.ResponseWriter, r *http.Request) { jsonOK(w, 200, s.hardware.Report(r.Context(), r.URL.Query().Get("refresh") == "1")) }