This commit is contained in:
Felix Ableitner 2024-11-28 12:17:16 +01:00
parent 2da108c059
commit 90f80ccd69

View file

@ -277,7 +277,7 @@ export class LemmyHttp {
/** /**
* Get data of current user. * Get data of current user.
* *
* `HTTP.GET /account/settings` * `HTTP.GET /account/my_user`
*/ */
getMyUser(options?: RequestOptions) { getMyUser(options?: RequestOptions) {
return this.#wrapper<object, MyUserInfo>( return this.#wrapper<object, MyUserInfo>(
@ -1436,12 +1436,12 @@ export class LemmyHttp {
/** /**
* Save your user settings. * Save your user settings.
* *
* `HTTP.PUT /account/settings` * `HTTP.PUT /account/settings/save`
*/ */
saveUserSettings(form: SaveUserSettings, options?: RequestOptions) { saveUserSettings(form: SaveUserSettings, options?: RequestOptions) {
return this.#wrapper<SaveUserSettings, SuccessResponse>( return this.#wrapper<SaveUserSettings, SuccessResponse>(
HttpType.Put, HttpType.Put,
"/account/settings", "/account/settings/save",
form, form,
options, options,
); );