console: redirect root to console

This commit is contained in:
Naeel
2026-04-27 10:51:41 +03:00
parent a11ac83baf
commit 7ba3cfa3af
3 changed files with 15 additions and 1 deletions
+7
View File
@@ -119,6 +119,13 @@ spec:
- host: fission.kube5s.ru
http:
paths:
- path: /
pathType: Exact
backend:
service:
name: fission-console
port:
number: 8090
- path: /console
pathType: Prefix
backend:
+7
View File
@@ -104,6 +104,13 @@ func NewServer(cfg Config) *Server {
// Разделено на публичные (без auth) и приватные (с authMiddleware).
func (s *Server) RegisterRoutes(mux *http.ServeMux) {
// Публичные: health checks, UI, auth endpoint
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
if r.URL.Path != "/" {
http.NotFound(w, r)
return
}
http.Redirect(w, r, "/console/", http.StatusTemporaryRedirect)
})
mux.HandleFunc("/health", func(w http.ResponseWriter, _ *http.Request) {
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
_, _ = w.Write([]byte("ok\n"))
+1 -1
View File
@@ -1236,7 +1236,7 @@
padding:8px 12px; cursor:pointer; background:#2a2a42; border-radius:8px 8px 0 0;
user-select:none;
">
<span style="font-weight:600; font-size:.85rem;">💬 Ассистент</span>
<span style="font-weight:600; font-size:.85rem;">💬 LLM Ассистент</span>
<span id="assistant-toggle-icon" style="font-size:.75rem; opacity:.7;"></span>
</div>
<div id="assistant-body" style="padding:10px; display:flex; flex-direction:column; gap:8px;">