Add logout endpoint (fixes #206) (#208)

This commit is contained in:
Nutomic 2023-10-31 13:44:04 +01:00 committed by GitHub
parent 79710354bd
commit c47102bfb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -976,6 +976,14 @@ export class LemmyHttp {
);
}
logout() {
return this.#wrapper<object, SuccessResponse>(
HttpType.Post,
"/user/logout",
{},
);
}
/**
* Get the details for a person.
*

View file