Souravdanyal commited on
Commit
0944271
·
1 Parent(s): 3ee2f30

Add root endpoint

Browse files
Files changed (1) hide show
  1. server/app.py +14 -0
server/app.py CHANGED
@@ -121,3 +121,17 @@ async def list_tasks() -> dict:
121
  "hard": [t["task_id"] for t in HARD_TASKS],
122
  "total": len(EASY_TASKS) + len(MEDIUM_TASKS) + len(HARD_TASKS),
123
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  "hard": [t["task_id"] for t in HARD_TASKS],
122
  "total": len(EASY_TASKS) + len(MEDIUM_TASKS) + len(HARD_TASKS),
123
  }
124
+
125
+ @app.get("/")
126
+ async def root():
127
+ return {
128
+ "name": "Code Debug Environment",
129
+ "version": "1.0.0",
130
+ "endpoints": {
131
+ "health": "/health",
132
+ "reset": "/reset",
133
+ "step": "/step",
134
+ "state": "/state",
135
+ "docs": "/docs"
136
+ }
137
+ }