aboutsummaryrefslogtreecommitdiff
path: root/watch.go
diff options
context:
space:
mode:
Diffstat (limited to 'watch.go')
-rw-r--r--watch.go4
1 files changed, 2 insertions, 2 deletions
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)
})