Skip to content

Commit 2de8267

Browse files
Update backend/app/api/handlers/v1/v1_ctrl_user.go
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 7bda5f1 commit 2de8267

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (ctrl *V1Controller) HandleUserSelfDelete() errchain.HandlerFunc {
121121
// @Summary Get user settings
122122
// @Tags User
123123
// @Produce json
124-
// @Success 200 {object} Wrapped{item=map[string]interface{}}
124+
// @Success 200 {object} Wrapped{item=schema.UserSettings}
125125
// @Router /v1/users/self/settings [GET]
126126
// @Security Bearer
127127
func (ctrl *V1Controller) HandleUserSelfSettingsGet() errchain.HandlerFunc {
@@ -132,6 +132,7 @@ func (ctrl *V1Controller) HandleUserSelfSettingsGet() errchain.HandlerFunc {
132132
return validate.NewRequestError(err, http.StatusInternalServerError)
133133
}
134134

135+
w.Header().Set("Cache-Control", "no-store")
135136
return server.JSON(w, http.StatusOK, Wrap(settings))
136137
}
137138
}

0 commit comments

Comments
 (0)