change /admin/block_instance to /admin/instance/block (and same for allow)

This commit is contained in:
Felix Ableitner 2024-11-29 12:25:06 +01:00
parent 72bb75d765
commit 9cc9b91a24

View file

@ -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,
); );