link-stack/apps/leafcutter/app/api/trends/recent/route.ts

10 lines
206 B
TypeScript
Raw Normal View History

2023-06-28 09:09:45 +00:00
import { NextResponse } from "next/server";
import { getTrends } from "@/app/_lib/opensearch";
export const GET = async () => {
const results = await getTrends(5);
NextResponse.json(results);
};