feat(setup): auto-detect host server IP in setup banner, support HEAD in /health, clean compose warning
This commit is contained in:
+3
-3
@@ -48,7 +48,7 @@ app.include_router(api_v1_router)
|
||||
app.include_router(legacy_router)
|
||||
|
||||
|
||||
@app.get("/api/v1/health", tags=["System"], summary="System health check probe")
|
||||
@app.api_route("/api/v1/health", methods=["GET", "HEAD"], tags=["System"], summary="System health check probe")
|
||||
def health_check():
|
||||
"""Health check probe endpoint."""
|
||||
return {
|
||||
@@ -58,8 +58,8 @@ def health_check():
|
||||
}
|
||||
|
||||
# Backward compatibility health check probes (hidden from OpenAPI schema)
|
||||
@app.get("/health", include_in_schema=False)
|
||||
@app.get("/api/health", include_in_schema=False)
|
||||
@app.api_route("/health", methods=["GET", "HEAD"], include_in_schema=False)
|
||||
@app.api_route("/api/health", methods=["GET", "HEAD"], include_in_schema=False)
|
||||
def legacy_health_check():
|
||||
return health_check()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user