Z User commited on
Commit
a5ea27c
·
1 Parent(s): fc48fb1

feat: redirect root / to WebUI chat page

Browse files
Files changed (1) hide show
  1. entry.py +6 -2
entry.py CHANGED
@@ -402,9 +402,13 @@ class ProxyHandler(BaseHTTPRequestHandler):
402
  qs = parsed.query
403
  method_override = "GET"
404
 
405
- # ── Dashboard root ──
406
  if path in ("/", "/index.html"):
407
- return self._send_html(DASHBOARD_HTML)
 
 
 
 
408
 
409
  # ── Deploy overview ──
410
  if path == "/deploy":
 
402
  qs = parsed.query
403
  method_override = "GET"
404
 
405
+ # ── Root redirect to WebUI Chat ──
406
  if path in ("/", "/index.html"):
407
+ self.send_response(302)
408
+ self.send_header("Location", "/webui#/hermes/chat")
409
+ self.send_header("Content-Length", "0")
410
+ self.end_headers()
411
+ return
412
 
413
  # ── Deploy overview ──
414
  if path == "/deploy":