@@ -2,7 +2,6 @@ package main
2
2
3
3
import (
4
4
"fmt"
5
- "net/http"
6
5
"os"
7
6
"path"
8
7
@@ -40,14 +39,11 @@ import (
40
39
stakingclient "github.com/cosmos/cosmos-sdk/x/staking/client"
41
40
staking "github.com/cosmos/cosmos-sdk/x/staking/client/rest"
42
41
43
- "github.com/rakyll/statik/fs"
44
42
"github.com/spf13/cobra"
45
43
"github.com/spf13/viper"
46
44
47
45
amino "github.com/tendermint/go-amino"
48
46
"github.com/tendermint/tendermint/libs/cli"
49
-
50
- _ "github.com/cosmos/gaia/cmd/gaiacli/statik"
51
47
)
52
48
53
49
func main () {
@@ -168,7 +164,6 @@ func txCmd(cdc *amino.Codec, mc []sdk.ModuleClient) *cobra.Command {
168
164
// NOTE: details on the routes added for each module are in the module documentation
169
165
// NOTE: If making updates here you also need to update the test helper in client/lcd/test_helper.go
170
166
func registerRoutes (rs * lcd.RestServer ) {
171
- registerSwaggerUI (rs )
172
167
rpc .RegisterRPCRoutes (rs .CliCtx , rs .Mux )
173
168
tx .RegisterTxRoutes (rs .CliCtx , rs .Mux , rs .Cdc )
174
169
auth .RegisterRoutes (rs .CliCtx , rs .Mux , rs .Cdc , at .StoreKey )
@@ -180,15 +175,6 @@ func registerRoutes(rs *lcd.RestServer) {
180
175
mintrest .RegisterRoutes (rs .CliCtx , rs .Mux , rs .Cdc )
181
176
}
182
177
183
- func registerSwaggerUI (rs * lcd.RestServer ) {
184
- statikFS , err := fs .New ()
185
- if err != nil {
186
- panic (err )
187
- }
188
- staticServer := http .FileServer (statikFS )
189
- rs .Mux .PathPrefix ("/swagger-ui/" ).Handler (http .StripPrefix ("/swagger-ui/" , staticServer ))
190
- }
191
-
192
178
func initConfig (cmd * cobra.Command ) error {
193
179
home , err := cmd .PersistentFlags ().GetString (cli .HomeFlag )
194
180
if err != nil {
0 commit comments