@@ -15,7 +15,6 @@ import (
15
15
"github.com/cosmos/cosmos-sdk/baseapp"
16
16
"github.com/cosmos/cosmos-sdk/client"
17
17
"github.com/cosmos/cosmos-sdk/client/grpc/tmservice"
18
- "github.com/cosmos/cosmos-sdk/client/rpc"
19
18
"github.com/cosmos/cosmos-sdk/codec"
20
19
"github.com/cosmos/cosmos-sdk/codec/types"
21
20
"github.com/cosmos/cosmos-sdk/server/api"
@@ -573,7 +572,6 @@ func New(
573
572
)
574
573
575
574
app .MM .RegisterInvariants (& app .CrisisKeeper )
576
- app .MM .RegisterRoutes (app .Router (), app .QueryRouter (), encodingConfig .Amino )
577
575
578
576
app .configurator = module .NewConfigurator (app .appCodec , app .MsgServiceRouter (), app .GRPCQueryRouter ())
579
577
app .MM .RegisterServices (app .configurator )
@@ -871,14 +869,12 @@ func (app *App) GetTxConfig() client.TxConfig {
871
869
// API server.
872
870
func (app * App ) RegisterAPIRoutes (apiSvr * api.Server , apiConfig config.APIConfig ) {
873
871
clientCtx := apiSvr .ClientCtx
874
- rpc .RegisterRoutes (clientCtx , apiSvr .Router )
875
872
// Register new tx routes from grpc-gateway.
876
873
authtx .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
877
874
// Register new tendermint queries routes from grpc-gateway.
878
875
tmservice .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
879
876
880
- // Register legacy and grpc-gateway routes for all modules.
881
- ModuleBasics .RegisterRESTRoutes (clientCtx , apiSvr .Router )
877
+ // Register grpc-gateway routes for all modules.
882
878
ModuleBasics .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
883
879
884
880
// register swagger API from root so that other applications can override easily
0 commit comments