summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index 33119e4..43c5561 100644
--- a/main.go
+++ b/main.go
@@ -31,8 +31,9 @@ func main() {
r := mux.NewRouter()
r.HandleFunc("/", Home)
r.PathPrefix("/static").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir(*staticpath))))
- r.HandleFunc("/chat/{chatroom:.+}/", Chatpage)
r.HandleFunc("/chat/{chatroom:.+}/socket", AcceptWebSock)
+ r.HandleFunc("/chat/{chatroom:.+}/", Chatpage)
+ r.HandleFunc("/chat/{chatroom:.+}", Chatpage)
http.Handle("/", r)
http.ListenAndServe(*laddr, nil)
}