add api.php under dev