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();
}
}
+2 -2
View File
@@ -1,6 +1,6 @@
import React, { ReactNode } from 'react';
import type { Metadata, Viewport } from 'next';
import { Poppins } from 'next/font/google';
import { Jost } from 'next/font/google';
import { cookies } from 'next/headers';
import Header from '@/components/Header';
@@ -20,7 +20,7 @@ export const viewport: Viewport = {
width: 'device-width'
};
const font = Poppins({ subsets: ['latin'], weight: ['400', '500'] });
const font = Jost({ subsets: ['latin', 'cyrillic'], weight: ['400'] });
const RootLayout = ({ children }: { children: ReactNode }) => {
const theme = cookies().get('theme')?.value as Theme;