@@ -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"
@@ -575,7 +574,6 @@ func New(
575574 )
576575
577576 app .MM .RegisterInvariants (& app .CrisisKeeper )
578- app .MM .RegisterRoutes (app .Router (), app .QueryRouter (), encodingConfig .Amino )
579577
580578 app .configurator = module .NewConfigurator (app .appCodec , app .MsgServiceRouter (), app .GRPCQueryRouter ())
581579 app .MM .RegisterServices (app .configurator )
@@ -873,14 +871,12 @@ func (app *App) GetTxConfig() client.TxConfig {
873871// API server.
874872func (app * App ) RegisterAPIRoutes (apiSvr * api.Server , apiConfig config.APIConfig ) {
875873 clientCtx := apiSvr .ClientCtx
876- rpc .RegisterRoutes (clientCtx , apiSvr .Router )
877874 // Register new tx routes from grpc-gateway.
878875 authtx .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
879876 // Register new tendermint queries routes from grpc-gateway.
880877 tmservice .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
881878
882- // Register legacy and grpc-gateway routes for all modules.
883- ModuleBasics .RegisterRESTRoutes (clientCtx , apiSvr .Router )
879+ // Register grpc-gateway routes for all modules.
884880 ModuleBasics .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
885881
886882 // register swagger API from root so that other applications can override easily
0 commit comments