rootDirectory nun in api.php