Skip to content

Commit

Permalink
fix: remove all RegisterRESTRoutes (cosmos#11797)
Browse files Browse the repository at this point in the history
  • Loading branch information
facundomedica authored Apr 27, 2022
1 parent f80dc0a commit 5fc75ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,7 @@ func (app *SimApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APICon
// Register new tendermint queries routes from grpc-gateway.
tmservice.RegisterGRPCGatewayRoutes(clientCtx, apiSvr.GRPCGatewayRouter)

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

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

0 comments on commit 5fc75ec

Please sign in to comment.