feat: implement bff layer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user