mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-01 10:09:55 +00:00
Default param.
This commit is contained in:
parent
2696d57fca
commit
6d22ac767d
1 changed files with 2 additions and 2 deletions
|
@ -297,7 +297,7 @@ export class LemmyHttp {
|
||||||
*
|
*
|
||||||
* `HTTP.GET /user/list_media`
|
* `HTTP.GET /user/list_media`
|
||||||
*/
|
*/
|
||||||
listMedia(form: ListMedia) {
|
listMedia(form: ListMedia = {}) {
|
||||||
return this.#wrapper<ListMedia, ListMediaResponse>(
|
return this.#wrapper<ListMedia, ListMediaResponse>(
|
||||||
HttpType.Get,
|
HttpType.Get,
|
||||||
"/user/list_media",
|
"/user/list_media",
|
||||||
|
@ -310,7 +310,7 @@ export class LemmyHttp {
|
||||||
*
|
*
|
||||||
* `HTTP.GET /admin/list_all_media`
|
* `HTTP.GET /admin/list_all_media`
|
||||||
*/
|
*/
|
||||||
listAllMedia(form: ListMedia) {
|
listAllMedia(form: ListMedia = {}) {
|
||||||
return this.#wrapper<ListMedia, ListMediaResponse>(
|
return this.#wrapper<ListMedia, ListMediaResponse>(
|
||||||
HttpType.Get,
|
HttpType.Get,
|
||||||
"/admin/list_all_media",
|
"/admin/list_all_media",
|
||||||
|
|
Loading…
Reference in a new issue