'Method not allowed']); exit; } // Load configuration require_once __DIR__ . '/config.php'; // Return only the API key for frontend Gemini calls // In production, you might want to add authentication here echo json_encode([ 'apiKey' => defined('GEMINI_API_KEY') ? GEMINI_API_KEY : null ]);