feat: fetch toloka's magnets

This commit is contained in:
ner committed 2024-10-27 12:13:02 +02:00
1 parent 3792e3face
commit 8691c7d66d
4 files changed
+49 -36

No files matched your search

+2 -3
View File
@@ -7,8 +7,7 @@ export async function GET({ nextUrl: { searchParams } }: NextRequest) {
try {
return NextResponse.json(await tlk.magnet(url));
} catch (_) {
console.log('error', _);
return NextResponse.json([]);
} catch (error) {
return NextResponse.error();
}
}