From 3c83f1af21c64cd66bf2b1e518fb9e377284be19 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Sat, 1 Jul 2023 17:40:14 +0530 Subject: [PATCH] Updating default index page (UI) - Blocks page is now the Index page - Status page (old index page) is now in /status --- server/public.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/public.go b/server/public.go index 236f6e0d..0c870c08 100644 --- a/server/public.go +++ b/server/public.go @@ -120,7 +120,7 @@ func NewPublicServer(binding string, certFiles string, db *db.RocksDB, chain bch serveMux.Handle(path+"favicon.ico", http.FileServer(http.Dir("./static/"))) serveMux.Handle(path+"static/", http.StripPrefix("/static/", http.FileServer(http.Dir("./static/")))) // default handler - serveMux.HandleFunc(path, s.htmlTemplateHandler(s.explorerIndex)) + serveMux.HandleFunc(path, s.htmlTemplateHandler(s.explorerBlocks)) // default API handler serveMux.HandleFunc(path+"api/", s.jsonHandler(s.apiIndex, apiV2)) @@ -146,6 +146,7 @@ func (s *PublicServer) ConnectFullPublicInterface() { serveMux.Handle(path+"test-websocket.html", http.FileServer(http.Dir("./static/"))) if s.internalExplorer { // internal explorer handlers + serveMux.HandleFunc(path+"status", s.htmlTemplateHandler(s.explorerIndex)) serveMux.HandleFunc(path+"tx/", s.htmlTemplateHandler(s.explorerTx)) serveMux.HandleFunc(path+"address/", s.htmlTemplateHandler(s.explorerAddress)) serveMux.HandleFunc(path+"xpub/", s.htmlTemplateHandler(s.explorerXpub))