1. added ajax to api.php and update gitigonre and local api.php