open list
This commit is contained in:
BIN
Portifolio
BIN
Portifolio
Binary file not shown.
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user