From 9b13628980d48e5efd0cc582c80a4a3e94a59a25 Mon Sep 17 00:00:00 2001 From: JP Appel Date: Tue, 8 Oct 2024 15:22:58 -0400 Subject: Remove dashboard rendering The dashboard html falls out of the responsibility of the backend. The static site provides the html. --- nonsense-time.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'nonsense-time.go') diff --git a/nonsense-time.go b/nonsense-time.go index 2a8debc..e57e048 100644 --- a/nonsense-time.go +++ b/nonsense-time.go @@ -7,7 +7,6 @@ import ( "log/slog" "net/http" "nonsense-time/api" - "nonsense-time/dashboard" "os" "time" ) @@ -60,13 +59,11 @@ func main() { logger = slog.New(slog.NewTextHandler(os.Stdout, loggerOpts)) api.Logger = logger - dashboard.Logger = logger vtt := timeoutMiddleware(http.HandlerFunc(api.VttOnline), *waitTime) mux.Handle("GET /vtt/status", vtt) mux.HandleFunc("GET /vtt", api.VttRedirect) - mux.HandleFunc("GET /", dashboard.Index) mux.HandleFunc("GET /vtt/logs", api.VttLogs) logger.Info(fmt.Sprint("Listening on ", addr)) -- cgit v1.2.3