Files
spsays-training/app/api/glossary/route.ts
T
2026-05-10 00:35:14 +05:30

8 lines
214 B
TypeScript

import { NextResponse } from "next/server";
import { getAllGlossaryEntries } from "@/lib/api";
export async function GET() {
const entries = await getAllGlossaryEntries();
return NextResponse.json(entries);
}