From 61bdb8a3465855dd153ff2d18fcd88b58df6d1bd Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Fri, 8 Dec 2023 18:30:21 +0100 Subject: [PATCH] Fix internal admin styles --- server/internal.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/internal.go b/server/internal.go index 7b5369ab..3560f0fa 100644 --- a/server/internal.go +++ b/server/internal.go @@ -65,6 +65,7 @@ func NewInternalServer(binding, certFiles string, db *db.RocksDB, chain bchain.B s.templates = s.parseTemplates() serveMux.Handle(path+"favicon.ico", http.FileServer(http.Dir("./static/"))) + serveMux.Handle(path+"static/", http.StripPrefix("/static/", http.FileServer(http.Dir("./static/")))) serveMux.HandleFunc(path+"metrics", promhttp.Handler().ServeHTTP) serveMux.HandleFunc(path, s.index) serveMux.HandleFunc(path+"admin", s.htmlTemplateHandler(s.adminIndex))