pull/562/head
Minh Doan 6 years ago committed by Minh Doan
parent 7115aa98ff
commit d9804bce89
  1. 4
      cmd/demo/main.go

@ -20,8 +20,8 @@ func main() {
router := mux.NewRouter() router := mux.NewRouter()
// Set up router for blocks. // Set up router for blocks.
// 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)
server := &http.Server{Addr: addr, Handler: router} server := &http.Server{Addr: addr, Handler: router}
server.ListenAndServe() server.ListenAndServe()

Loading…
Cancel
Save