From 9cc9b91a24942552cb477089ae04cc8b3e11bf21 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 29 Nov 2024 12:25:06 +0100 Subject: [PATCH] change /admin/block_instance to /admin/instance/block (and same for allow) --- src/http.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/http.ts b/src/http.ts index 7e1f172..64aa84c 100644 --- a/src/http.ts +++ b/src/http.ts @@ -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( 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( HttpType.Post, - "/admin/allow_instance", + "/admin/instance/allow", form, options, );