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

10 lines
204 B
TypeScript
Raw Normal View History

2023-07-18 12:26:57 +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);
};