mirror of
https://github.com/sysadminsmedia/homebox.git
synced 2025-12-21 13:23:14 +01:00
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:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user