Merge with develop

This commit is contained in:
HaoyangLiu
2018-09-30 11:46:27 +08:00
14 changed files with 29 additions and 55 deletions
+2 -1
View File
@@ -144,7 +144,8 @@ func createHandler(cdc *codec.Codec) http.Handler {
staticServer := http.FileServer(statikFS)
r.PathPrefix("/swagger-ui/").Handler(http.StripPrefix("/swagger-ui/", staticServer))
cliCtx := context.NewCLIContext().WithCodec(cdc).WithLogger(os.Stdout)
cliCtx := context.NewCLIContext().WithCodec(cdc)
// TODO: make more functional? aka r = keys.RegisterRoutes(r)
r.HandleFunc("/version", CLIVersionRequestHandler).Methods("GET")