High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: / so we support that for the dashboard
Luigi Agosti138882d47404
diff --git a/cmd/pinchtab/cmd_dashboard.go b/cmd/pinchtab/cmd_dashboard.goindex d640d920..0cbf8fcf 100644--- a/cmd/pinchtab/cmd_dashboard.go+++ b/cmd/pinchtab/cmd_dashboard.go@@ -127,16 +127,6 @@ func runDashboard(cfg *config.RuntimeConfig) {slog.Info("scheduler enabled", "strategy", schedCfg.Strategy, "workers", schedCfg.WorkerCount)}- // Root returns health check (API-first design)- mux.HandleFunc("GET /{$}", func(w http.ResponseWriter, r *http.Request) {- web.JSON(w, 200, map[string]any{- "status": "ok",- "mode": "dashboard",- "dashboard": "/dashboard",- "docs": "/api/docs",- })- })-mux.HandleFunc("GET /health", configAPI.HandleHealth)mux.HandleFunc("GET /metrics", func(w http.ResponseWriter, r *http.Request) {diff --git a/internal/dashboard/dashboard.go b/internal/dashboard/dashboard.goindex 5f72c7f5..6c8a1f80 100644--- a/internal/dashboard/dashboard.go+++ b/internal/dashboard/dashboard.go@@ -134,7 +134,8 @@ func (d *Dashboard) RegisterHandlers(mux *http.ServeMux) {mux.Handle("GET /dashboard/assets/", http.StripPrefix("/dashboard", d.withLongCache(fileServer)))mux.Handle("GET /dashboard/favicon.png", http.StripPrefix("/dashboard", d.withLongCache(fileServer)))- // SPA: serve dashboard.html for /dashboard+ // SPA: serve dashboard.html for / and /dashboard+ mux.Handle("GET /{$}", d.withNoCache(http.HandlerFunc(d.handleDashboardUI)))mux.Handle("GET /dashboard", d.withNoCache(http.HandlerFunc(d.handleDashboardUI)))mux.Handle("GET /dashboard/", d.withNoCache(http.HandlerFunc(d.handleDashboardUI)))}