We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca9ee4d commit 2fd5345Copy full SHA for 2fd5345
examples/python/servers/fastapi/main.py
@@ -136,6 +136,16 @@ async def dynamic_price_middleware(request: Request, call_next):
136
)
137
138
139
+@app.api_route("/", methods=["GET", "HEAD"])
140
+async def health_check():
141
+ return {"status": "ok"}
142
+
143
144
+@app.api_route("/health", methods=["GET", "HEAD"])
145
146
147
148
149
@app.get("/acp-budget")
150
async def acp_budget() -> Dict[str, Any]:
151
return {
0 commit comments