Status ok

This commit is contained in:
2026-03-06 11:50:32 +01:00
parent af2547b54a
commit 48922c063c
2 changed files with 3 additions and 3 deletions

View File

@@ -3,9 +3,9 @@ from fastapi import FastAPI
app = FastAPI() app = FastAPI()
@app.get("/") @app.get("/health/{Status}")
def read_root(): def get_health(Status: int, q: str = "ok"):
return {"Hello": "World"} return {"Status": Status, "q": q}
@app.get("/items/{item_id}") @app.get("/items/{item_id}")