feat: support editting live info

This commit is contained in:
shinya
2025-08-26 01:03:09 +08:00
parent ad3bf8f3bc
commit 5e93d608ee
4 changed files with 168 additions and 11 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ export async function GET(request: NextRequest) {
});
if (!response.ok) {
return NextResponse.json({ error: 'Failed to fetch' }, { status: 500 });
return NextResponse.json({ error: 'Failed to fetch', message: response.statusText }, { status: 500 });
}
const contentType = response.headers.get('Content-Type');
@@ -43,6 +43,6 @@ export async function GET(request: NextRequest) {
}
return NextResponse.json({ success: true, type: 'm3u8' }, { status: 200 });
} catch (error) {
return NextResponse.json({ error: 'Failed to fetch' }, { status: 500 });
return NextResponse.json({ error: 'Failed to fetch', message: error }, { status: 500 });
}
}