From d9804bce8993b1c890554d9915bba04c52a08cbe Mon Sep 17 00:00:00 2001 From: Minh Doan Date: Thu, 14 Mar 2019 13:51:40 -0700 Subject: [PATCH] wip --- cmd/demo/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()