From 4704817ce88ac0e7efb81a2daf9103a22b309857 Mon Sep 17 00:00:00 2001 From: Derrick Lee Date: Tue, 1 Feb 2022 08:32:17 -0800 Subject: [PATCH] Remove panic if Swagger disabled in config (#1155) --- app/app.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/app.go b/app/app.go index cbfbbd46..587f72ec 100644 --- a/app/app.go +++ b/app/app.go @@ -784,11 +784,7 @@ func (app *App) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APIConfig authtx.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) ModuleBasics.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter) - // register swagger API from root so that other applications can override easily - if apiConfig.Swagger { - // TODO where should old and new swagger docs be served? Should files be embedded in the binary? - panic("TODO: register swagger in app") - } + // Swagger API configuration is ignored } // RegisterTxService implements the Application.RegisterTxService method.