fix(frontend): will not auto-resize to fit
This commit is contained in:
parent
3509c556a1
commit
acf9d132f7
4 changed files with 217 additions and 23 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue