@@ -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"
@@ -573,7 +572,6 @@ func New(
573572 )
574573
575574 app .MM .RegisterInvariants (& app .CrisisKeeper )
576- app .MM .RegisterRoutes (app .Router (), app .QueryRouter (), encodingConfig .Amino )
577575
578576 app .configurator = module .NewConfigurator (app .appCodec , app .MsgServiceRouter (), app .GRPCQueryRouter ())
579577 app .MM .RegisterServices (app .configurator )
@@ -871,14 +869,12 @@ func (app *App) GetTxConfig() client.TxConfig {
871869// API server.
872870func (app * App ) RegisterAPIRoutes (apiSvr * api.Server , apiConfig config.APIConfig ) {
873871 clientCtx := apiSvr .ClientCtx
874- rpc .RegisterRoutes (clientCtx , apiSvr .Router )
875872 // Register new tx routes from grpc-gateway.
876873 authtx .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
877874 // Register new tendermint queries routes from grpc-gateway.
878875 tmservice .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
879876
880- // Register legacy and grpc-gateway routes for all modules.
881- ModuleBasics .RegisterRESTRoutes (clientCtx , apiSvr .Router )
877+ // Register grpc-gateway routes for all modules.
882878 ModuleBasics .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
883879
884880 // register swagger API from root so that other applications can override easily
0 commit comments