You should remove the host part from all URLs, and add it only in your apiRequest method for easier maintenance and readability.