pull/164/head
Minh Doan 6 years ago committed by Minh Doan
parent cbf7896070
commit aedb582b12
  1. 2
      services/explorer/service.go

@ -55,7 +55,7 @@ func (s *Service) Run() {
s.router.Path("/blocks").Queries("from", "{[0-9]*?}", "to", "{[0-9]*?}").HandlerFunc(s.GetExplorerBlocks).Methods("GET") s.router.Path("/blocks").Queries("from", "{[0-9]*?}", "to", "{[0-9]*?}").HandlerFunc(s.GetExplorerBlocks).Methods("GET")
s.router.Path("/blocks").HandlerFunc(s.GetExplorerBlocks) s.router.Path("/blocks").HandlerFunc(s.GetExplorerBlocks)
s.router.Path("/tx").Queries("id", "{[0-9A-Fa-f]*?}").HandlerFunc(s.GetExplorerTransaction).Methods("GET") s.router.Path("/tx").Queries("id", "{[0-9A-Fa-fx]*?}").HandlerFunc(s.GetExplorerTransaction).Methods("GET")
s.router.Path("/tx").HandlerFunc(s.GetExplorerTransaction) s.router.Path("/tx").HandlerFunc(s.GetExplorerTransaction)
// Do serving now. // Do serving now.
fmt.Println("Listening to:", GetExplorerPort(s.Port)) fmt.Println("Listening to:", GetExplorerPort(s.Port))

Loading…
Cancel
Save