Merge PR #5640: change default path to show swagger
This commit is contained in:
parent
07d4263cf6
commit
242f674e78
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue