feat: fetch toloka's magnets
This commit is contained in:
1 parent
3792e3face
commit
8691c7d66d
4 files changed
+49
-36
No files matched your search
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user