mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-01 01:59:55 +00:00
Adding listAllMedia.
This commit is contained in:
parent
7afb26a005
commit
121f30f0f7
1 changed files with 13 additions and 0 deletions
13
src/http.ts
13
src/http.ts
|
@ -305,6 +305,19 @@ export class LemmyHttp {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* List all the media known to your instance.
|
||||
*
|
||||
* `HTTP.GET /admin/list_all_media`
|
||||
*/
|
||||
listAllMedia(form: ListMedia) {
|
||||
return this.#wrapper<ListMedia, ListMediaResponse>(
|
||||
HttpType.Get,
|
||||
"/admin/list_all_media",
|
||||
form,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable / Disable TOTP / two-factor authentication.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue