Skip to content

Commit

Permalink
Add logout endpoint (fixes #206) (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic authored Oct 31, 2023
1 parent 7971035 commit c47102b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,14 @@ export class LemmyHttp {
);
}

logout() {
return this.#wrapper<object, SuccessResponse>(
HttpType.Post,
"/user/logout",
{},
);
}

/**
* Get the details for a person.
*
Expand Down
Empty file removed src/utils.ts
Empty file.

0 comments on commit c47102b

Please sign in to comment.