Skip to content

Commit

Permalink
Merge pull request #91 from rossabaker/remove-trailing-slashes
Browse files Browse the repository at this point in the history
Remove trailing slashes on actor endpoints
  • Loading branch information
RangerMauve authored Nov 12, 2024
2 parents 078b276 + 6efb5c1 commit 751bcbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ export class SocialInboxClient {
}

async getActorInfo (actor: string = this.account): Promise<ActorInfo> {
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<void> {
await this.sendRequest(DELETE, `/${actor}/`)
await this.sendRequest(DELETE, `/${actor}`)
}

async setInfo (info: ActorInfo): Promise<void> {
Expand Down

0 comments on commit 751bcbe

Please sign in to comment.