<?php
require __DIR__.'/bootstrap.php'; require_auth(); [, $file]=storage_paths($config); $s=read_state($file);
if((int)$s['revision']===0||!is_array($s['payload'])) respond(['error'=>'El servidor todavía no contiene una copia SIAPA.'],404);
respond(['revision'=>(int)$s['revision'],'checksum'=>$s['checksum'],'updated_at'=>$s['updated_at'],'payload'=>$s['payload']]);
