10 lines
206 B
TypeScript
10 lines
206 B
TypeScript
|
|
import { NextResponse } from "next/server";
|
||
|
|
import { getTrends } from "@/app/_lib/opensearch";
|
||
|
|
|
||
|
|
export const GET = async () => {
|
||
|
|
const results = await getTrends(5);
|
||
|
|
|
||
|
|
NextResponse.json(results);
|
||
|
|
};
|
||
|
|
|