mirror of
https://gitea.gofwd.group/sean/gunbuilder-next-tailwind.git
synced 2025-12-06 11:06:46 -05:00
first commit
This commit is contained in:
7
src/app/api/products/route.ts
Normal file
7
src/app/api/products/route.ts
Normal file
@@ -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