🚧 WIP
This commit is contained in:
+10
@@ -179,3 +179,13 @@ def index(request: Request, nettoinkomst: float | None = Query(default=None, ge=
|
|||||||
@app.get("/health", response_class=PlainTextResponse)
|
@app.get("/health", response_class=PlainTextResponse)
|
||||||
def health() -> str:
|
def health() -> str:
|
||||||
return "ok"
|
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")
|
||||||
|
),
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user