Merge pull request #21 from bitvora/dev-fixStatic

remove reference to static
This commit is contained in:
Barry Deen
2024-09-26 21:09:43 -04:00
committed by GitHub

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"))