@@ -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"
@@ -575,7 +574,6 @@ func New(
575
574
)
576
575
577
576
app .MM .RegisterInvariants (& app .CrisisKeeper )
578
- app .MM .RegisterRoutes (app .Router (), app .QueryRouter (), encodingConfig .Amino )
579
577
580
578
app .configurator = module .NewConfigurator (app .appCodec , app .MsgServiceRouter (), app .GRPCQueryRouter ())
581
579
app .MM .RegisterServices (app .configurator )
@@ -873,14 +871,12 @@ func (app *App) GetTxConfig() client.TxConfig {
873
871
// API server.
874
872
func (app * App ) RegisterAPIRoutes (apiSvr * api.Server , apiConfig config.APIConfig ) {
875
873
clientCtx := apiSvr .ClientCtx
876
- rpc .RegisterRoutes (clientCtx , apiSvr .Router )
877
874
// Register new tx routes from grpc-gateway.
878
875
authtx .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
879
876
// Register new tendermint queries routes from grpc-gateway.
880
877
tmservice .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
881
878
882
- // Register legacy and grpc-gateway routes for all modules.
883
- ModuleBasics .RegisterRESTRoutes (clientCtx , apiSvr .Router )
879
+ // Register grpc-gateway routes for all modules.
884
880
ModuleBasics .RegisterGRPCGatewayRoutes (clientCtx , apiSvr .GRPCGatewayRouter )
885
881
886
882
// register swagger API from root so that other applications can override easily
0 commit comments