13 lines
413 B
PHP
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"}';
|
|
}
|