import { NextResponse } from "next/server"; import { listTerms } from "../../../../../lib/db/repo"; interface RouteContext { params: Promise<{ projectId: string }>; } export async function GET(_req: Request, ctx: RouteContext) { const { projectId } = await ctx.params; const terms = await listTerms(projectId); return NextResponse.json({ terms }); }