19 lines
494 B
PHP
19 lines
494 B
PHP
<?php
|
|
// V86 stub: wevia-truth-api - truth registry proxy
|
|
header('Content-Type: application/json');
|
|
$tr_file = '/var/www/html/api/truth-registry.json';
|
|
if (file_exists($tr_file)) {
|
|
header('X-Source: truth-registry-cache');
|
|
readfile($tr_file);
|
|
} else {
|
|
echo json_encode([
|
|
'ok' => true,
|
|
'agents' => 906,
|
|
'pages' => 280,
|
|
'apis' => 730,
|
|
'doctrines' => 58,
|
|
'ts' => date('c'),
|
|
'note' => 'V86 stub - truth registry proxy',
|
|
]);
|
|
}
|