Prince9868 commited on
Commit
acad52b
·
1 Parent(s): 344bcb6

Add root endpoint for platform probe compatibility

Browse files
Files changed (1) hide show
  1. server/app.py +5 -0
server/app.py CHANGED
@@ -51,6 +51,11 @@ app = FastAPI(
51
  # Standard OpenEnv Endpoints
52
  # ---------------------------------------------------------------------------
53
 
 
 
 
 
 
54
  @app.get("/health")
55
  def health() -> dict:
56
  return {"status": "ok", "tasks": [task.task_id for task in TASKS]}
 
51
  # Standard OpenEnv Endpoints
52
  # ---------------------------------------------------------------------------
53
 
54
+ @app.get("/")
55
+ def root() -> dict:
56
+ """Root health endpoint used by platform probes and humans."""
57
+ return {"status": "ok", "name": "guardian-openenv"}
58
+
59
  @app.get("/health")
60
  def health() -> dict:
61
  return {"status": "ok", "tasks": [task.task_id for task in TASKS]}