adnandi commited on
Commit
21c590d
·
1 Parent(s): 8ba4e26

Add HEAD method support to root route for health check compatibility

Browse files
Files changed (1) hide show
  1. dashboard_app/main.py +1 -0
dashboard_app/main.py CHANGED
@@ -738,6 +738,7 @@ def read_health():
738
  # --- Frontend Static Routes ---
739
 
740
  @app.get("/", response_class=FileResponse)
 
741
  def serve_index():
742
  """Serves the main dashboard page."""
743
  return FileResponse(os.path.join(STATIC_DIR, "dashboard.html"))
 
738
  # --- Frontend Static Routes ---
739
 
740
  @app.get("/", response_class=FileResponse)
741
+ @app.head("/", response_class=FileResponse)
742
  def serve_index():
743
  """Serves the main dashboard page."""
744
  return FileResponse(os.path.join(STATIC_DIR, "dashboard.html"))