From 296cd3a5baf00b36b67eeec22c081bb8131929c6 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Mon, 12 Aug 2024 09:58:43 +0800 Subject: [PATCH] Bug fix --- routes/api/shared_token.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api/shared_token.ts b/routes/api/shared_token.ts index f1acb14..836cf0a 100644 --- a/routes/api/shared_token.ts +++ b/routes/api/shared_token.ts @@ -53,7 +53,7 @@ export const handler: Handlers = { } const existed = await exists(flutter_base); const host = get_host(req); - const base = host + existed ? "/flutter" : "/api/"; + const base = host + (existed ? "/flutter" : "/api/"); const token = encodeURIComponent(st.token); const url = existed ? `${base}/gallery/${gid}?share=${token}`