Skip to content

Commit 5fc75ec

Browse files
fix: remove all RegisterRESTRoutes (cosmos#11797)
1 parent f80dc0a commit 5fc75ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,7 @@ func (app *SimApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APICon
580580
// Register new tendermint queries routes from grpc-gateway.
581581
tmservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
582582

583-
// Register legacy and grpc-gateway routes for all modules.
584-
ModuleBasics.RegisterRESTRoutes(clientCtx, apiSvr.Router)
583+
// Register grpc-gateway routes for all modules.
585584
ModuleBasics.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)
586585

587586
// register swagger API from root so that other applications can override easily

0 commit comments

Comments
 (0)