From 5a8d8233244644405d6288e780db5596b472ac52 Mon Sep 17 00:00:00 2001 From: HaoyangLiu Date: Fri, 14 Sep 2018 01:01:57 +0800 Subject: [PATCH] change swaggerui to swagger-ui --- client/lcd/root.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/lcd/root.go b/client/lcd/root.go index 0c29a6bed..a1f1b27ae 100644 --- a/client/lcd/root.go +++ b/client/lcd/root.go @@ -107,7 +107,7 @@ func ServeLiteCommand(cdc *wire.Codec) *cobra.Command { cmd := &cobra.Command{ Use: "lite-server", - Short: "Start Gaia-lite server daemon, a local REST server with swagger-ui, default url: http//localhost:1317/swaggerui/", + Short: "Start Gaia-lite server daemon, a local REST server with swagger-ui, default url: http://localhost:1317/swagger-ui/", RunE: func(cmd *cobra.Command, args []string) error { listenAddr := viper.GetString(flagListenAddr) router := createLiteHandler(cdc) @@ -117,7 +117,7 @@ func ServeLiteCommand(cdc *wire.Codec) *cobra.Command { panic(err) } staticServer := http.FileServer(statikFS) - router.PathPrefix("/swaggerui/").Handler(http.StripPrefix("/swaggerui/", staticServer)) + router.PathPrefix("/swagger-ui/").Handler(http.StripPrefix("/swagger-ui/", staticServer)) logger := log.NewTMLogger(log.NewSyncWriter(os.Stdout)).With("module", "lite-server") maxOpen := viper.GetInt(flagMaxOpenConnections)