10 lines
337 B
PHP
10 lines
337 B
PHP
<?php
|
|
header("Content-Type: application/json");
|
|
header("Access-Control-Allow-Origin: *");
|
|
$f="/opt/weval-l99/registry/registry.json";
|
|
if(!file_exists($f))die(json_encode(["error"=>"not generated"]));
|
|
$d=json_decode(file_get_contents($f),true);
|
|
$t=$_GET["type"]??null;
|
|
if($t&&isset($d[$t]))die(json_encode($d[$t]));
|
|
die(json_encode($d));
|