Updating default index page (UI)
- Blocks page is now the Index page - Status page (old index page) is now in /status
This commit is contained in:
parent
9003df740d
commit
3c83f1af21
@ -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))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user