mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-04 18:21:12 +00:00
change /admin/block_instance to /admin/instance/block (and same for allow)
This commit is contained in:
parent
72bb75d765
commit
9cc9b91a24
1 changed files with 4 additions and 4 deletions
|
@ -1832,12 +1832,12 @@ export class LemmyHttp {
|
||||||
/**
|
/**
|
||||||
* Globally block an instance as admin.
|
* Globally block an instance as admin.
|
||||||
*
|
*
|
||||||
* `HTTP.Post /admin/block_instance`
|
* `HTTP.Post /admin/instance/block`
|
||||||
*/
|
*/
|
||||||
adminBlockInstance(form: AdminBlockInstanceParams, options?: RequestOptions) {
|
adminBlockInstance(form: AdminBlockInstanceParams, options?: RequestOptions) {
|
||||||
return this.#wrapper<AdminBlockInstanceParams, SuccessResponse>(
|
return this.#wrapper<AdminBlockInstanceParams, SuccessResponse>(
|
||||||
HttpType.Post,
|
HttpType.Post,
|
||||||
"/admin/block_instance",
|
"/admin/instance/block",
|
||||||
form,
|
form,
|
||||||
options,
|
options,
|
||||||
);
|
);
|
||||||
|
@ -1846,12 +1846,12 @@ export class LemmyHttp {
|
||||||
/**
|
/**
|
||||||
* Globally allow an instance as admin.
|
* Globally allow an instance as admin.
|
||||||
*
|
*
|
||||||
* `HTTP.Post /admin/allow_instance`
|
* `HTTP.Post /admin/instance/allow`
|
||||||
*/
|
*/
|
||||||
adminAllowInstance(form: AdminAllowInstanceParams, options?: RequestOptions) {
|
adminAllowInstance(form: AdminAllowInstanceParams, options?: RequestOptions) {
|
||||||
return this.#wrapper<AdminAllowInstanceParams, SuccessResponse>(
|
return this.#wrapper<AdminAllowInstanceParams, SuccessResponse>(
|
||||||
HttpType.Post,
|
HttpType.Post,
|
||||||
"/admin/allow_instance",
|
"/admin/instance/allow",
|
||||||
form,
|
form,
|
||||||
options,
|
options,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue