Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

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

Mattde248ee6c896
diff --git a/backend/app/api/handlers/v1/v1_ctrl_user.go b/backend/app/api/handlers/v1/v1_ctrl_user.go
index 14cc7701..8a7df415 100644
--- a/backend/app/api/handlers/v1/v1_ctrl_user.go
+++ b/backend/app/api/handlers/v1/v1_ctrl_user.go
@@ -127,7 +127,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 {
@@ -138,6 +138,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))
}
}