Added api.php and index.php