package web import ( "net/http" "github.com/owen/vibeproxy/internal/stats" ) func (h *Web) handleDashboard(w http.ResponseWriter, r *http.Request) { d, err := stats.Compute(h.db, h.store.Current()) if err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) return } render(w, "dashboard", PageData{Active: "dashboard", Title: "Dashboard", Data: d}) }