From 2de82676cc75db169feedea092b4d3f489efc22c Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 23 Aug 2025 15:10:44 -0400 Subject: [PATCH] Update backend/app/api/handlers/v1/v1_ctrl_user.go Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- backend/app/api/handlers/v1/v1_ctrl_user.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/app/api/handlers/v1/v1_ctrl_user.go b/backend/app/api/handlers/v1/v1_ctrl_user.go index 5caa5f21..09cc2a64 100644 --- a/backend/app/api/handlers/v1/v1_ctrl_user.go +++ b/backend/app/api/handlers/v1/v1_ctrl_user.go @@ -121,7 +121,7 @@ func (ctrl *V1Controller) HandleUserSelfDelete() errchain.HandlerFunc { // @Summary Get user settings // @Tags User // @Produce json -// @Success 200 {object} Wrapped{item=map[string]interface{}} +// @Success 200 {object} Wrapped{item=schema.UserSettings} // @Router /v1/users/self/settings [GET] // @Security Bearer func (ctrl *V1Controller) HandleUserSelfSettingsGet() errchain.HandlerFunc { @@ -132,6 +132,7 @@ func (ctrl *V1Controller) HandleUserSelfSettingsGet() errchain.HandlerFunc { return validate.NewRequestError(err, http.StatusInternalServerError) } + w.Header().Set("Cache-Control", "no-store") return server.JSON(w, http.StatusOK, Wrap(settings)) } }