Serve favicon on internal interface to avoid expensive calls to index
This commit is contained in:
parent
79a22b2185
commit
ded10477a8
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user