From 4aa569d80f318efafce3987d983f8316845df2cc Mon Sep 17 00:00:00 2001 From: Hk-Gosuto Date: Wed, 20 Sep 2023 17:54:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(24):=20=E7=A7=BB=E9=99=A4R2=E5=AD=98?= =?UTF-8?q?=E5=82=A8=E6=96=87=E4=BB=B6=E8=8E=B7=E5=8F=96=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E7=9A=84=E9=89=B4=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/file/[...path]/route.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/api/file/[...path]/route.ts b/app/api/file/[...path]/route.ts index aad4de19b..f35c7770e 100644 --- a/app/api/file/[...path]/route.ts +++ b/app/api/file/[...path]/route.ts @@ -10,12 +10,12 @@ async function handle( return NextResponse.json({ body: "OK" }, { status: 200 }); } - const authResult = auth(req); - if (authResult.error) { - return NextResponse.json(authResult, { - status: 401, - }); - } + // const authResult = auth(req); + // if (authResult.error) { + // return NextResponse.json(authResult, { + // status: 401, + // }); + // } try { var file = await S3FileStorage.get(params.path[0]);