Created index.php to handle API requests