fix(frontend): will not auto-resize to fit

This commit is contained in:
js0ny 2025-12-06 03:54:04 +00:00
parent 3509c556a1
commit acf9d132f7
4 changed files with 217 additions and 23 deletions

View file

@ -84,6 +84,8 @@ func (s *Server) snapshotHandler(w http.ResponseWriter, r *http.Request) {
results = append(results, event)
}
slog.Info("Snapshot retrieved", "time", timeParam, "count", len(results))
w.Header().Set("Content-Type", "application/json")
if err := json.NewEncoder(w).Encode(results); err != nil {
slog.Error("Failed to encode response", "error", err)