link-stack/apps/leafcutter/app/api/trends/recent/route.ts
2025-01-22 17:50:38 +01:00

10 lines
240 B
TypeScript

import { NextResponse } from "next/server";
import { getTrends } from "app/_lib/opensearch";
export const GET = async () => {
const results = await getTrends(5);
NextResponse.json(results);
};
export const dynamic = "force-dynamic";