diff --git a/presentation/src/app/api/wordlist/route.tsx b/presentation/src/app/api/wordlist/route.tsx new file mode 100644 index 0000000..55dc8cc --- /dev/null +++ b/presentation/src/app/api/wordlist/route.tsx @@ -0,0 +1,13 @@ +import { NextResponse } from 'next/server' +import { fetchWordlist } from 'src/app/word-list/utils' + +export async function GET(request: Request) { + // const { searchParams } = new URL(request.url) + // const url = searchParams.get('url') + // console.log(url) + + const res = await fetchWordlist() + + console.log('API Data fetch is done', res) + return NextResponse.json(res) +} diff --git a/presentation/src/app/presentation/page.tsx b/presentation/src/app/presentation/page.tsx index 6c362e2..dfbd798 100644 --- a/presentation/src/app/presentation/page.tsx +++ b/presentation/src/app/presentation/page.tsx @@ -37,10 +37,9 @@ export default function Presentation() { function Introduction() { return (
Nos da la posibilidad de renderizar desde el servidor
-