<?php
require_once dirname(__DIR__).'/gateway/ProductionGateway.php';
$d=$_GET['race_date']??date('Y-m-d');
$p=(new ProductionGateway())->execute($d);
?><!doctype html><html><head><meta charset="utf-8"><title>Gateway v3.3</title></head>
<body style="background:#08111f;color:#fff;font-family:Arial">
<h2>Production Gateway v3.3</h2>
<p>Status: <?=htmlspecialchars($p['status'])?></p>
<p>Framework: <?=htmlspecialchars($p['gateway_version'])?></p>
<p>Summary Rows: <?=count($p['payload']['summary'])?></p>
<p>Ranking Rows: <?=count($p['payload']['ranking'])?></p>
</body></html>
