From a92f9973b37c7a36ed122b8c30edcf8201ebb7ac Mon Sep 17 00:00:00 2001 From: Jonas Bengtsson Date: Wed, 19 Aug 2026 22:17:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/main.py b/app/main.py index 42fdbdb..cd858c8 100644 --- a/app/main.py +++ b/app/main.py @@ -179,3 +179,13 @@ def index(request: Request, nettoinkomst: float | None = Query(default=None, ge= @app.get("/health", response_class=PlainTextResponse) def health() -> str: return "ok" + +@app.get("/debug-root-path") +async def debug_root_path(request: Request): + return { + "env": os.getenv("ROOT_PATH"), + "scope_root_path": request.scope.get("root_path"), + "static_url": str( + request.url_for("static", path="/style.css") + ), + }