Make the API url configurable