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

10 lines
204 B
TypeScript
Raw Normal View History

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