diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-04-15 10:45:23 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-04-15 10:45:23 -0700 |
commit | bc8dbb0c3a82e4ab6172c6f899e399fdc972a6b1 (patch) | |
tree | e8cde6f1aeeab9725069433a80744c6dc2d9f91d /python/fatcat_web/web_config.py | |
parent | 7ca9a96705c5a2da4fe56a8cab6aa7653dac4ea5 (diff) | |
download | fatcat-bc8dbb0c3a82e4ab6172c6f899e399fdc972a6b1.tar.gz fatcat-bc8dbb0c3a82e4ab6172c6f899e399fdc972a6b1.zip |
fix public API links
Diffstat (limited to 'python/fatcat_web/web_config.py')
-rw-r--r-- | python/fatcat_web/web_config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_web/web_config.py b/python/fatcat_web/web_config.py index 3dba933d..98b89aea 100644 --- a/python/fatcat_web/web_config.py +++ b/python/fatcat_web/web_config.py @@ -21,8 +21,8 @@ class Config(object): # This is, effectively, the QA/PROD flag FATCAT_DOMAIN = os.environ.get("FATCAT_DOMAIN", default="dev.fatcat.wiki") FATCAT_API_AUTH_TOKEN = os.environ.get("FATCAT_API_AUTH_TOKEN", default=None) - FATCAT_API_HOST = os.environ.get("FATCAT_API_HOST", default="https://{}/v0".format(FATCAT_DOMAIN)) - public_host_default = f"https://{FATCAT_DOMAIN}/v0" + FATCAT_API_HOST = os.environ.get("FATCAT_API_HOST", default=f"https://api.{FATCAT_DOMAIN}/v0") + public_host_default = f"https://api.{FATCAT_DOMAIN}/v0" if FATCAT_DOMAIN == "dev.fatcat.wiki": public_host_default = FATCAT_API_HOST FATCAT_PUBLIC_API_HOST = os.environ.get("FATCAT_PUBLIC_API_HOST", default=public_host_default) |