diff --git a/appr/client.py b/appr/client.py index 3b28655..874ee97 100644 --- a/appr/client.py +++ b/appr/client.py @@ -57,6 +57,8 @@ def _configure_endpoint(self, endpoint): else: scheme = "https://" endpoint = scheme + endpoint + if 'URL_PREFIX' in os.environ: + return urlparse(endpoint + os.environ['URL_PREFIX']) return urlparse(endpoint + DEFAULT_PREFIX) @property