feat: support editting live info
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user