#36: change "ajax" to "api" in urls