Files
gunbuilder-next-tailwind/src/app/api/products/route.ts
T
2025-06-29 07:12:20 -04:00

7 lines
244 B
TypeScript

import { NextResponse } from 'next/server';
export async function GET() {
const res = await fetch('http://localhost:8080/api/products'); // <-- your Spring backend endpoint
const data = await res.json();
return NextResponse.json(data);
}