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 }) }