Select api base url based on host