diff options
Diffstat (limited to 'watch.go')
| -rw-r--r-- | watch.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) }) |
