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") + ), + }