Files
html/api/l99-state-file.php
opus f773bf8116
Some checks failed
WEVAL NonReg / nonreg (push) Has been cancelled
wave(212): Visual Management L99 12 layers + 7sigma + state endpoint
2026-04-21 15:56:51 +02:00

13 lines
413 B
PHP

<?php
// Wave 212 · expose L99 state file as JSON endpoint
@require_once __DIR__ . '/wevia-sanitizer-guard.php';
header('Content-Type: application/json; charset=utf-8');
header('Access-Control-Allow-Origin: *');
$path = '/opt/weval-l99/l99-state.json';
if (file_exists($path)) {
$data = @file_get_contents($path);
echo $data ?: '{"error":"read_fail"}';
} else {
echo '{"error":"state_not_found"}';
}