Update backend/app/api/handlers/v1/v1_ctrl_user.go

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Matt
2025-08-23 15:10:44 -04:00
committed by GitHub
parent 7bda5f10cd
commit 2de82676cc

View File

@@ -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))
}
}