Merge PR #5640: change default path to show swagger

This commit is contained in:
Jonathan Gimeno 2020-02-13 18:08:34 +01:00 committed by GitHub
parent 07d4263cf6
commit 242f674e78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -41,6 +41,8 @@ Ref: https://keepachangelog.com/en/1.0.0/
* (modules) [\#5572](https://github.com/cosmos/cosmos-sdk/pull/5572) The `/bank/balances/{address}` endpoint now returns all account
balances or a single balance by denom when the `denom` query parameter is present.
* (client) [\#5640](https://github.com/cosmos/cosmos-sdk/pull/5640) The rest server endpoint `/swagger-ui/` is replaced by
´/´.
### API Breaking Changes

View File

@ -105,5 +105,5 @@ func (rs *RestServer) registerSwaggerUI() {
panic(err)
}
staticServer := http.FileServer(statikFS)
rs.Mux.PathPrefix("/swagger-ui/").Handler(http.StripPrefix("/swagger-ui/", staticServer))
rs.Mux.PathPrefix("/").Handler(staticServer)
}