From 6efb5c11fec999355d9cd742644c7a70aae6e064 Mon Sep 17 00:00:00 2001 From: "Ross A. Baker" Date: Sun, 10 Nov 2024 22:24:51 -0500 Subject: [PATCH] Remove trailing slashes on actor endpoints --- src/client/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/index.ts b/src/client/index.ts index 620ac48..6760d05 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -92,12 +92,12 @@ export class SocialInboxClient { } async getActorInfo (actor: string = this.account): Promise { - const response = await this.sendRequest(GET, `/${actor}/`) + const response = await this.sendRequest(GET, `/${actor}`) return await response.json() } async deleteActor (actor: string = this.account): Promise { - await this.sendRequest(DELETE, `/${actor}/`) + await this.sendRequest(DELETE, `/${actor}`) } async setInfo (info: ActorInfo): Promise {