diff --git a/admin/main.go b/admin/main.go index a5b1f02f..95932e57 100644 --- a/admin/main.go +++ b/admin/main.go @@ -69,10 +69,9 @@ func main() { mux.Handle("/teams/", StaticHandler(staticDir)) mux.Handle("/themes/", StaticHandler(staticDir)) mux.Handle("/", http.FileServer(http.Dir(staticDir))) - http.HandleFunc("/", mux.ServeHTTP) log.Println(fmt.Sprintf("Ready, listening on %s", *bind)) - if err := http.ListenAndServe(*bind, nil); err != nil { + if err := http.ListenAndServe(*bind, mux); err != nil { log.Fatal("Unable to listen and serve: ", err) } }