notification + admin panel

This commit is contained in:
root
2025-12-21 11:39:41 +01:00
parent 514e04f43d
commit 5e65144934
15 changed files with 2423 additions and 883 deletions

View File

@@ -0,0 +1,16 @@
import { NextRequest, NextResponse } from 'next/server'
import { clearAdminSession } from '@/lib/admin-auth'
export async function POST(request: NextRequest) {
try {
await clearAdminSession()
return NextResponse.json({ success: true })
} catch (error) {
console.error('Error during admin logout:', error)
return NextResponse.json(
{ error: 'Failed to process logout' },
{ status: 500 }
)
}
}