Files
portfolio/src/app/api/route.ts
T
2024-11-14 16:25:56 +01:00

7 lines
215 B
TypeScript

import getBlogs from './blog';
import { notion, databaseId } from './notion';
export async function GET() {
let [status, data] = await getBlogs(notion, databaseId);
return Response.json(data, { status });
}