Enabled Caddy logging and added unbuffered health check

This commit is contained in:
2026-02-10 22:20:19 +08:00
parent 29c9f0139e
commit a05c88f6d5
3 changed files with 15 additions and 0 deletions

View File

@@ -70,6 +70,10 @@ import os
async def admin_panel():
return FileResponse("app/static/admin.html")
@app.get("/api/v1/health")
async def health_check():
return {"status": "ok", "message": "Global AI Gateway is reachable"}
@app.get("/")
async def root():
return FileResponse("app/static/index.html")