diff --git a/main.go b/main.go index 7778ee0..550f7a3 100644 --- a/main.go +++ b/main.go @@ -98,10 +98,6 @@ func makeNewRelay(relayType string) *khatru.Relay { }) mux := privateRelay.Router() - static := http.FileServer(http.Dir("templates/static")) - - mux.Handle("GET /static/", http.StripPrefix("/static/", static)) - mux.Handle("GET /favicon.ico", http.StripPrefix("/", static)) mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { tmpl := template.Must(template.ParseFiles("templates/index.html")) @@ -177,10 +173,6 @@ func makeNewRelay(relayType string) *khatru.Relay { }) mux := chatRelay.Router() - static := http.FileServer(http.Dir("templates/static")) - - mux.Handle("GET /static/", http.StripPrefix("/static/", static)) - mux.Handle("GET /favicon.ico", http.StripPrefix("/", static)) mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { tmpl := template.Must(template.ParseFiles("templates/index.html")) @@ -222,10 +214,6 @@ func makeNewRelay(relayType string) *khatru.Relay { }) mux := inboxRelay.Router() - static := http.FileServer(http.Dir("templates/static")) - - mux.Handle("GET /static/", http.StripPrefix("/static/", static)) - mux.Handle("GET /favicon.ico", http.StripPrefix("/", static)) mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { tmpl := template.Must(template.ParseFiles("templates/index.html"))