fix: add frame

This commit is contained in:
2026-07-08 13:47:50 +03:30
parent b5420bac21
commit da6df0328f
5 changed files with 106 additions and 7 deletions
+6 -1
View File
@@ -171,7 +171,12 @@ func (h *Handler) Frames(w http.ResponseWriter, r *http.Request) {
if p, _ := h.svc.GetProfile(r.Context(), id); p != nil {
selected = p.SelectedFrame
}
httpx.JSON(w, http.StatusOK, map[string]any{"frames": frames, "selected": selected})
tiers, _ := h.svc.RankTiers(r.Context())
httpx.JSON(w, http.StatusOK, map[string]any{
"frames": frames,
"selected": selected,
"rank_tiers": tiers,
})
}
// BuyFrame — POST /api/shop/buy-frame