Serve favicon on internal interface to avoid expensive calls to index

This commit is contained in:
Martin Boehm 2018-09-26 11:44:42 +02:00
parent 79a22b2185
commit ded10477a8

View File

@ -51,6 +51,7 @@ func NewInternalServer(binding, certFiles string, db *db.RocksDB, chain bchain.B
api: api,
}
serveMux.Handle(path+"favicon.ico", http.FileServer(http.Dir("./static/")))
serveMux.HandleFunc(path+"metrics", promhttp.Handler().ServeHTTP)
serveMux.HandleFunc(path, s.index)