<?php
require __DIR__.'/bootstrap.php'; require_auth(); [, $file]=storage_paths($config); $s=read_state($file);
respond(['exists'=>$s['revision']>0 && is_array($s['payload']),'revision'=>(int)$s['revision'],'checksum'=>$s['checksum'],'updated_at'=>$s['updated_at'],'device_id'=>$s['device_id']]);
