switched to nextjs

This commit is contained in:
2024-11-14 16:25:56 +01:00
parent eded2294d4
commit 98c401c9e1
20 changed files with 2251 additions and 345 deletions
+7
View File
@@ -0,0 +1,7 @@
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 });
}