From b28453a083c0c60cd77fa7f8f0fd3c825360d9e0 Mon Sep 17 00:00:00 2001 From: Enju Aihara <9839590-EnjuAihara@users.noreply.gitlab.com> Date: Fri, 22 Apr 2022 19:58:43 +0200 Subject: [PATCH] localhost path --- api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.39.5