UjjwalPardeshi commited on
Commit
d449338
·
1 Parent(s): 82996ed

fix: root to dashboard

Browse files
Files changed (1) hide show
  1. server/app.py +7 -0
server/app.py CHANGED
@@ -76,6 +76,13 @@ app.routes[:] = [
76
  _baseline_lock = asyncio.Lock()
77
 
78
 
 
 
 
 
 
 
 
79
  @app.get("/health")
80
  def health_check() -> dict:
81
  """Health check — required by hackathon auto-validator."""
 
76
  _baseline_lock = asyncio.Lock()
77
 
78
 
79
+ @app.get("/")
80
+ def root():
81
+ """Redirect root to dashboard."""
82
+ from fastapi.responses import RedirectResponse
83
+ return RedirectResponse(url="/dashboard")
84
+
85
+
86
  @app.get("/health")
87
  def health_check() -> dict:
88
  """Health check — required by hackathon auto-validator."""