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

11 lines
240 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 () => {
2025-01-22 17:50:38 +01:00
const results = await getTrends(5);
2023-06-28 09:09:45 +00:00
2025-01-22 17:50:38 +01:00
NextResponse.json(results);
2023-06-28 09:09:45 +00:00
};
2025-01-22 17:50:38 +01:00
export const dynamic = "force-dynamic";