10 lines
241 B
TypeScript
10 lines
241 B
TypeScript
import { NextResponse } from "next/server";
|
|
import { prisma } from "@/lib/db";
|
|
|
|
export async function GET() {
|
|
const entries = await prisma.glossaryEntry.findMany({
|
|
orderBy: { term: "asc" },
|
|
});
|
|
return NextResponse.json(entries);
|
|
}
|