Files
html/api/wevia-sovereign-proxy.php
2026-04-12 22:57:03 +02:00

15 lines
613 B
PHP

<?php
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: POST, GET, OPTIONS');
header('Access-Control-Allow-Headers: Content-Type');
if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') { http_response_code(200); exit; }
if (isset($_GET['action']) && $_GET['action'] === 'health') {
header('Content-Type: application/json');
echo json_encode(['status'=>'online','providers'=>['cerebras','groq','sambanova','mistral','ollama'],'engine'=>'wevia-autonomous']);
exit;
}
// Forward to autonomous engine directly (no localhost HTTP)
include '/var/www/html/api/wevia-autonomous.php';