move to drizzle instead of prisma

This commit is contained in:
JonLuca De Caro
2026-03-25 09:24:14 -07:00
parent e7686fd6d7
commit c1098561fb
14 changed files with 757 additions and 951 deletions

8
src/pages/api/posts.ts Normal file
View File

@@ -0,0 +1,8 @@
import type { NextApiRequest, NextApiResponse } from "next";
import { listRecentPosts } from "~/server/posts";
export default async function handler(_request: NextApiRequest, response: NextApiResponse) {
const posts = await listRecentPosts();
response.status(200).json({ posts });
}