mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-23 22:20:23 +09:00
fix(24): 移除R2存储文件获取接口的鉴权
This commit is contained in:
parent
b0371af295
commit
4aa569d80f
@ -10,12 +10,12 @@ async function handle(
|
|||||||
return NextResponse.json({ body: "OK" }, { status: 200 });
|
return NextResponse.json({ body: "OK" }, { status: 200 });
|
||||||
}
|
}
|
||||||
|
|
||||||
const authResult = auth(req);
|
// const authResult = auth(req);
|
||||||
if (authResult.error) {
|
// if (authResult.error) {
|
||||||
return NextResponse.json(authResult, {
|
// return NextResponse.json(authResult, {
|
||||||
status: 401,
|
// status: 401,
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var file = await S3FileStorage.get(params.path[0]);
|
var file = await S3FileStorage.get(params.path[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user