Restore `json-endpoints.php`