From d7192fc1e4cf399ffbd9a70011964d95112ad9f5 Mon Sep 17 00:00:00 2001 From: Barry Deen Date: Thu, 26 Sep 2024 21:27:02 -0400 Subject: [PATCH] avoid collisions in url --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 8f661ee..755aa7f 100644 --- a/main.go +++ b/main.go @@ -99,7 +99,7 @@ func makeNewRelay(relayType string) *khatru.Relay { mux := privateRelay.Router() - mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + mux.HandleFunc("/private", func(w http.ResponseWriter, r *http.Request) { tmpl := template.Must(template.ParseFiles("templates/index.html")) data := struct { RelayName string @@ -174,7 +174,7 @@ func makeNewRelay(relayType string) *khatru.Relay { mux := chatRelay.Router() - mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + mux.HandleFunc("/chat", func(w http.ResponseWriter, r *http.Request) { tmpl := template.Must(template.ParseFiles("templates/index.html")) data := struct { RelayName string @@ -215,7 +215,7 @@ func makeNewRelay(relayType string) *khatru.Relay { mux := inboxRelay.Router() - mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + mux.HandleFunc("/inbox", func(w http.ResponseWriter, r *http.Request) { tmpl := template.Must(template.ParseFiles("templates/index.html")) data := struct { RelayName string