Renamed index.php to api.php