From 242f674e7825b5130d9df9685f00fa9efafc52dd Mon Sep 17 00:00:00 2001 From: Jonathan Gimeno Date: Thu, 13 Feb 2020 18:08:34 +0100 Subject: [PATCH] Merge PR #5640: change default path to show swagger --- CHANGELOG.md | 2 ++ client/lcd/root.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 54274ff56728..aa10acf3c1e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/client/lcd/root.go b/client/lcd/root.go index af0e74b48557..12697944c006 100644 --- a/client/lcd/root.go +++ b/client/lcd/root.go @@ -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) }