ashdev commited on
Commit
909b9c1
·
1 Parent(s): df660ab

fix: add root endpoint to prevent 404 on Space URL

Browse files
Files changed (2) hide show
  1. .geminiignore +11 -0
  2. server/app.py +18 -0
.geminiignore ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .env
2
+ .env.*
3
+ .git/
4
+ .venv*/
5
+ __pycache__/
6
+ *.pyc
7
+ uv.lock
8
+ node_modules/
9
+ dist/
10
+ build/
11
+ .DS_Store
server/app.py CHANGED
@@ -29,6 +29,24 @@ app = create_app(
29
  env_name="med_triage_env"
30
  )
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  # --- Additional Hackathon Endpoints ---
33
 
34
  @app.get("/tasks")
 
29
  env_name="med_triage_env"
30
  )
31
 
32
+ # --- Root Endpoint ---
33
+
34
+ @app.get("/")
35
+ async def root():
36
+ """Welcome endpoint for Hugging Face Space."""
37
+ return {
38
+ "message": "Welcome to MedTriage OpenEnv!",
39
+ "status": "healthy",
40
+ "version": "0.1.0",
41
+ "documentation": "/docs",
42
+ "endpoints": {
43
+ "tasks": "/tasks",
44
+ "health": "/health",
45
+ "baseline": "/baseline",
46
+ "grader": "/grader"
47
+ }
48
+ }
49
+
50
  # --- Additional Hackathon Endpoints ---
51
 
52
  @app.get("/tasks")