diff --git a/cmd/demo/main.go b/cmd/demo/main.go index 252a82724..fd43cdccb 100644 --- a/cmd/demo/main.go +++ b/cmd/demo/main.go @@ -20,8 +20,8 @@ func main() { router := mux.NewRouter() // 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").HandlerFunc(s.GetExplorerBlocks) + s.router.Path("/blocks").Queries("from", "{[0-9]*?}", "to", "{[0-9]*?}").HandlerFunc(s.GetExplorerBlocks).Methods("GET") + s.router.Path("/blocks").HandlerFunc(s.GetExplorerBlocks) server := &http.Server{Addr: addr, Handler: router} server.ListenAndServe()