This commit is contained in:
Jonas Bengtsson
2026-08-19 22:17:59 +02:00
parent 128844d380
commit a92f9973b3
+10
View File
@@ -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")
),
}