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