Compare commits
2 Commits
3d5640d40a
...
c2276b6e13
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c2276b6e13 | ||
|
|
a949fde15c |
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")
|
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)
|
http.Error(w, fmt.Sprintf("failed to encode positions: %s", err), http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user