Revert directory and regex for API calls