From: Enju Aihara <9839590-EnjuAihara@users.noreply.gitlab.com> Date: Fri, 22 Apr 2022 17:58:43 +0000 (+0200) Subject: localhost path X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b28453a083c0c60cd77fa7f8f0fd3c825360d9e0;p=fba.git localhost path --- diff --git a/api.py b/api.py index 1f29693..20363b9 100644 --- a/api.py +++ b/api.py @@ -55,10 +55,10 @@ def blocked(domain: str = None): @app.get(base_url+"/") def index(request: Request, domain: str = None): - blocks = get(f"http://127.0.0.1:8069/api?domain={domain}") + blocks = get(f"http://127.0.0.1:8069{base_url}/api?domain={domain}") info = None if domain == None: - info = get(f"http://127.0.0.1:8069/info") + info = get(f"http://127.0.0.1:8069{base_url}/info") if not info.ok: raise HTTPException(status_code=info.status_code, detail=info.text) info = info.json()