mirror of
https://github.com/aljazceru/haven.git
synced 2026-01-15 11:34:18 +01:00
Merge pull request #21 from bitvora/dev-fixStatic
remove reference to static
This commit is contained in:
4
main.go
4
main.go
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user