import { NextRequest, NextResponse } from 'next/server';
import { verifyAdminToken, getAdminToken } from '@/lib/auth/tokens';

export async function GET(request: NextRequest) {
  if (!verifyAdminToken(request)) {
    return NextResponse.json({ error: 'Unauthorized' }, { status: 401 });
  }
  return NextResponse.json({ token: getAdminToken() });
}
