From 1316aa7ca5e1668bbb7967264540bff3c8dbef86 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sat, 16 May 2026 22:04:14 -0500 Subject: new api implemented server-side --- watch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'watch.go') diff --git a/watch.go b/watch.go index 8352e62..81f0d86 100644 --- a/watch.go +++ b/watch.go @@ -26,8 +26,8 @@ func renderWatchTemplate(w http.ResponseWriter, id string) { } /* routes */ -func setupRoutesWatch() { - http.HandleFunc("/watch", func(w http.ResponseWriter, r *http.Request) { +func registerRoutesWatch(mux *http.ServeMux) { + mux.HandleFunc("/watch", func(w http.ResponseWriter, r *http.Request) { id := r.URL.Query().Get("v") renderWatchTemplate(w, id) }) -- cgit v1.2.3