feat: implement bff layer

This commit is contained in:
gosangam
2026-05-10 00:35:14 +05:30
parent 5951eb5e18
commit 32da38b24f
91 changed files with 2434 additions and 11784 deletions
+2 -4
View File
@@ -1,9 +1,7 @@
import { NextResponse } from "next/server";
import { prisma } from "@/lib/db";
import { getAllGlossaryEntries } from "@/lib/api";
export async function GET() {
const entries = await prisma.glossaryEntry.findMany({
orderBy: { term: "asc" },
});
const entries = await getAllGlossaryEntries();
return NextResponse.json(entries);
}