From 7909f684d7e78527c0b4227f04836733b9cf4e99 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Sat, 29 Nov 2025 15:23:59 -0600 Subject: [PATCH] trailing / are now allowed --- src/webpage/utils/utils.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/webpage/utils/utils.ts b/src/webpage/utils/utils.ts index 166582b..4a38edb 100644 --- a/src/webpage/utils/utils.ts +++ b/src/webpage/utils/utils.ts @@ -465,6 +465,11 @@ export async function getapiurls(str: string): Promise< let api: string; try { const info = await fetch(`${str}.well-known/spacebar`).then((x) => x.json()); + if (info.api.endsWith("/")) { + const temp = info.api.split("/"); + temp.pop(); + info.api = temp.join("/"); + } api = info.api; } catch { api = str;