8 lines
214 B
TypeScript
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);
|
|
}
|