fix(24): 移除R2存储文件获取接口的鉴权

This commit is contained in:
Hk-Gosuto 2023-09-20 17:54:32 +08:00
parent b0371af295
commit 4aa569d80f

View File

@ -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]);