first commit

This commit is contained in:
2026-08-05 19:40:55 +03:00
commit 3952b61edf
55 changed files with 10964 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
import { NextResponse } from 'next/server'
// NextAuth kaldırıldı — admin koruması şimdilik açık
export async function requireAdmin() {
// İleride env-based token veya başka auth mekanizması eklenebilir
}
export function unauthorized() {
return NextResponse.json({ error: 'Unauthorized' }, { status: 401 })
}