完善tv电视直播
This commit is contained in:
@@ -9,7 +9,7 @@ export const runtime = 'nodejs';
|
||||
export async function GET(request: Request) {
|
||||
const { searchParams } = new URL(request.url);
|
||||
const imageUrl = searchParams.get('url');
|
||||
const source = searchParams.get('moontv-source');
|
||||
const source = searchParams.get('moontv-source') || searchParams.get('source');
|
||||
|
||||
if (!imageUrl) {
|
||||
return NextResponse.json({ error: 'Missing image URL' }, { status: 400 });
|
||||
|
||||
Reference in New Issue
Block a user