@@ -15,7 +15,6 @@ import (
1515 "github.com/cosmos/cosmos-sdk/baseapp"
1616 "github.com/cosmos/cosmos-sdk/client"
1717 "github.com/cosmos/cosmos-sdk/client/grpc/tmservice"
18- "github.com/cosmos/cosmos-sdk/client/rpc"
1918 "github.com/cosmos/cosmos-sdk/codec"
2019 "github.com/cosmos/cosmos-sdk/codec/types"
2120 "github.com/cosmos/cosmos-sdk/server/api"
@@ -574,7 +573,6 @@ func New(
574573 )
575574
576575 app .MM .RegisterInvariants (& app .CrisisKeeper )
577- app .MM .RegisterRoutes (app .Router (), app .QueryRouter (), encodingConfig .Amino )
578576
579577 app .configurator = module .NewConfigurator (app .appCodec , app .MsgServiceRouter (), app .GRPCQueryRouter ())
580578 app .MM .RegisterServices (app .configurator )
@@ -878,14 +876,12 @@ func (app *App) GetTxConfig() client.TxConfig {
878876// API server.
879877func (app * App ) RegisterAPIRoutes (apiSvr * api.Server , apiConfig config.APIConfig ) {
880878 clientCtx := apiSvr .ClientCtx
881- rpc .RegisterRoutes (clientCtx , apiSvr .Router )
882879 // Register new tx routes from grpc-gateway.
883880 authtx .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
884881 // Register new tendermint queries routes from grpc-gateway.
885882 tmservice .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
886883
887- // Register legacy and grpc-gateway routes for all modules.
888- ModuleBasics .RegisterRESTRoutes (clientCtx , apiSvr .Router )
884+ // Register grpc-gateway routes for all modules.
889885 ModuleBasics .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
890886
891887 // register swagger API from root so that other applications can override easily
0 commit comments