first commit
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
Reference in New Issue
Block a user