mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-05 02:31: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.
|
||||
*
|
||||
* `HTTP.Post /admin/block_instance`
|
||||
* `HTTP.Post /admin/instance/block`
|
||||
*/
|
||||
adminBlockInstance(form: AdminBlockInstanceParams, options?: RequestOptions) {
|
||||
return this.#wrapper<AdminBlockInstanceParams, SuccessResponse>(
|
||||
HttpType.Post,
|
||||
"/admin/block_instance",
|
||||
"/admin/instance/block",
|
||||
form,
|
||||
options,
|
||||
);
|
||||
|
@ -1846,12 +1846,12 @@ export class LemmyHttp {
|
|||
/**
|
||||
* Globally allow an instance as admin.
|
||||
*
|
||||
* `HTTP.Post /admin/allow_instance`
|
||||
* `HTTP.Post /admin/instance/allow`
|
||||
*/
|
||||
adminAllowInstance(form: AdminAllowInstanceParams, options?: RequestOptions) {
|
||||
return this.#wrapper<AdminAllowInstanceParams, SuccessResponse>(
|
||||
HttpType.Post,
|
||||
"/admin/allow_instance",
|
||||
"/admin/instance/allow",
|
||||
form,
|
||||
options,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue