Make simpler api/index.php