first commit
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user