diff options
author | Kevin Chabowski <kevin@kch42.de> | 2014-03-27 23:48:11 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2014-03-27 23:51:08 +0100 |
commit | feb228c1fc35aae543d369012994eac7a1dca90f (patch) | |
tree | d2a9b7cf449b3e1e8d48e2bc36b0b383ee5f658a /main.go | |
parent | 5c45b0e3e5fbe479155ad403b4936d2485a028bd (diff) | |
download | simplechat-feb228c1fc35aae543d369012994eac7a1dca90f.tar.gz simplechat-feb228c1fc35aae543d369012994eac7a1dca90f.tar.bz2 simplechat-feb228c1fc35aae543d369012994eac7a1dca90f.zip |
Homepage done
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) } |