Remove panic if Swagger disabled in config (#1155)

This commit is contained in:
Derrick Lee 2022-02-01 08:32:17 -08:00 committed by GitHub
parent 03ab76bb2d
commit 4704817ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.