open list

This commit is contained in:
zipfriis
2026-03-27 21:26:31 +01:00
parent d0cb9af746
commit a949fde15c
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@@ -88,7 +88,7 @@ func GetPositionListHandler(db *sql.DB) http.HandlerFunc {
}
w.Header().Set("Content-Type", "application/json")
if err := json.NewEncoder(w).Encode(map[string]any{"List": posList}); err != nil {
if err := json.NewEncoder(w).Encode(posList); err != nil {
http.Error(w, fmt.Sprintf("failed to encode positions: %s", err), http.StatusInternalServerError)
return
}