From 07db42a3465a64940d343b8b8909e6af8963b4a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E4=BA=AE=E4=BA=AE?= Date: Mon, 15 Jan 2024 16:01:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=9B=BE=E7=89=87=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions/rest/routes/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/rest/routes/index.ts b/functions/rest/routes/index.ts index a68ae4b..8295817 100644 --- a/functions/rest/routes/index.ts +++ b/functions/rest/routes/index.ts @@ -75,7 +75,7 @@ router.post('/list', auth, async (req : Request, env : Env) => { const objs = list.objects const urls = objs.map(it => { return { - url: `${BASE_URL}${include}/${it.key}`, + url: BASE_URL+`${include}/${it.key}`, key: it.key, size: it.size } @@ -113,7 +113,7 @@ router.post('/upload', auth, async (req: Request, env : Env) => { urls.push({ key: object.key, size: object.size, - url: `${BASE_URL}/${object.key}`, + url: BASE_URL+`/${object.key}`, filename: item.name }) }