log: migration

This commit is contained in:
ner committed 2024-10-27 16:49:12 +02:00
commit 1fe912f4bd
16 files changed
+199 -372

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
import { NextRequest, NextResponse } from 'next/server';
import tlk from '@/api/parsers/tlk';
export async function GET({ nextUrl: { searchParams } }: NextRequest) {
const url = searchParams.get('url') as string;
try {
return NextResponse.json(await tlk.magnet(url));
} catch (error) {
return NextResponse.error();
}
}