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

12 lines
274 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);
2023-08-25 07:11:33 +00:00
console.log({ results });
2023-06-28 09:09:45 +00:00
NextResponse.json(results);
};
2023-08-25 07:11:33 +00:00
export const dynamic = 'force-dynamic';