remove reference to static

This commit is contained in:
Barry Deen
2024-09-26 21:09:24 -04:00
parent 739affa180
commit c0082d4b27

View File

@@ -252,10 +252,6 @@ func makeNewRelay(relayType string) *khatru.Relay {
})
mux := outboxRelay.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"))