Use relative path the call the API.