Spaces:
Running
Running
Z User commited on
Commit ·
a5ea27c
1
Parent(s): fc48fb1
feat: redirect root / to WebUI chat page
Browse files
entry.py
CHANGED
|
@@ -402,9 +402,13 @@ class ProxyHandler(BaseHTTPRequestHandler):
|
|
| 402 |
qs = parsed.query
|
| 403 |
method_override = "GET"
|
| 404 |
|
| 405 |
-
# ──
|
| 406 |
if path in ("/", "/index.html"):
|
| 407 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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":
|