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.get("/")
def read_root():
return {"Hello": "World"}
@app.get("/health/{Status}")
def get_health(Status: int, q: str = "ok"):
return {"Status": Status, "q": q}
@app.get("/items/{item_id}")