Skip to content

Commit

Permalink
Merge PR cosmos#4377: Remove statik/Swagger UI
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbez authored May 20, 2019
1 parent cca3c3c commit 4b872d2
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 83,058 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ tools-stamp
# Data - ideally these don't exist
baseapp/data/*
client/lcd/keys/*
client/lcd/statik/statik.go
mytestnet

# Testing
Expand Down
3 changes: 0 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ ci: tools build test_cover lint test
build: go.sum
@go build -mod=readonly ./...

update_gaia_lite_docs:
@statik -src=client/lcd/swagger-ui -dest=client/lcd -f

dist:
@bash publish/dist.sh
@bash publish/publish.sh
Expand Down
14 changes: 0 additions & 14 deletions client/lcd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ package lcd
import (
"fmt"
"net"
"net/http"
"os"
"time"

"github.com/gorilla/mux"
"github.com/rakyll/statik/fs"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/tendermint/tendermint/libs/log"
Expand All @@ -19,9 +17,6 @@ import (
"github.com/cosmos/cosmos-sdk/codec"
keybase "github.com/cosmos/cosmos-sdk/crypto/keys"
"github.com/cosmos/cosmos-sdk/server"

// Import statik for light client stuff
_ "github.com/cosmos/cosmos-sdk/client/lcd/statik"
)

// RestServer represents the Light Client Rest server
Expand Down Expand Up @@ -103,12 +98,3 @@ func ServeCommand(cdc *codec.Codec, registerRoutesFn func(*RestServer)) *cobra.C

return client.RegisterRestServerFlags(cmd)
}

func (rs *RestServer) registerSwaggerUI() {
statikFS, err := fs.New()
if err != nil {
panic(err)
}
staticServer := http.FileServer(statikFS)
rs.Mux.PathPrefix("/swagger-ui/").Handler(http.StripPrefix("/swagger-ui/", staticServer))
}
3 changes: 0 additions & 3 deletions client/lcd/statik/init.go

This file was deleted.

Binary file removed client/lcd/swagger-ui/favicon-16x16.png
Binary file not shown.
Binary file removed client/lcd/swagger-ui/favicon-32x32.png
Binary file not shown.
60 changes: 0 additions & 60 deletions client/lcd/swagger-ui/index.html

This file was deleted.

67 changes: 0 additions & 67 deletions client/lcd/swagger-ui/oauth2-redirect.html

This file was deleted.

Loading

0 comments on commit 4b872d2

Please sign in to comment.