feat: implement initial fullstack portfolio application including dashboard, CMS, and analytics features.

This commit is contained in:
Moh Dzulfikri Maulana
2026-03-07 16:32:49 +07:00
commit bdd61d11d3
59 changed files with 11107 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { NextResponse } from "next/server";
import { prisma } from "@/lib/prisma";
export async function GET() {
const now = new Date();
await prisma.blog.updateMany({
where: {
status: "SCHEDULED",
scheduledAt: { lte: now },
},
data: {
status: "PUBLISHED",
publishedAt: now,
},
});
return NextResponse.json({ success: true });
}