Files
spsays-training/app/api/glossary/route.ts
T
2026-04-14 19:12:11 +05:30

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);
}