@@ -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 )
@@ -872,14 +870,12 @@ func (app *App) GetTxConfig() client.TxConfig {
872870// API server.
873871func (app * App ) RegisterAPIRoutes (apiSvr * api.Server , apiConfig config.APIConfig ) {
874872 clientCtx := apiSvr .ClientCtx
875- rpc .RegisterRoutes (clientCtx , apiSvr .Router )
876873 // Register new tx routes from grpc-gateway.
877874 authtx .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
878875 // Register new tendermint queries routes from grpc-gateway.
879876 tmservice .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
880877
881- // Register legacy and grpc-gateway routes for all modules.
882- ModuleBasics .RegisterRESTRoutes (clientCtx , apiSvr .Router )
878+ // Register grpc-gateway routes for all modules.
883879 ModuleBasics .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
884880
885881 // register swagger API from root so that other applications can override easily
0 commit comments