Move test.php to Api