feat: kapsamli admin dashboard ekle

This commit is contained in:
2026-08-02 18:10:56 +03:00
parent bf2fc272f2
commit 3af61c82a2
19 changed files with 653 additions and 34 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
import { NextResponse } from "next/server";
import { requireAdmin } from "@/lib/auth/current-user";
import { getApiAdmin } from "@/lib/admin-api";
export async function POST() {
await requireAdmin();
const admin = await getApiAdmin();
if (!admin) return NextResponse.json({ error: "FORBIDDEN" }, { status: 403 });
return NextResponse.json({ ok: true, message: "Demo seed komut satırından çalışır: npm run db:seed" });
}