Nuxt coursework boilerplate: Tailwind, Drizzle (MySQL), Redis, Pug page, Vercel deploy workflow

This commit is contained in:
2026-09-06 11:01:04 +02:00
commit 5920325d65
20 changed files with 2226 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
import { db } from "~~/server/db";
import { notes } from "~~/server/db/schema";
export default defineEventHandler(async (event) => {
const body = await readBody<{ title: string; body: string }>(event);
await db.insert(notes).values({ title: body.title, body: body.body });
return { ok: true };
});