diff --git a/x/stake/client/rest/query.go b/x/stake/client/rest/query.go index c8f5396abe16..0eba14aacd6c 100644 --- a/x/stake/client/rest/query.go +++ b/x/stake/client/rest/query.go @@ -32,20 +32,6 @@ func registerQueryRoutes(cliCtx context.CLIContext, r *mux.Router, cdc *wire.Cod delegatorTxsHandlerFn(cliCtx, cdc), ).Methods("GET") - // TODO Tests - // // GET /stake/delegators/{delegatorAddr}/validators // Query all validators that a delegator is bonded to - // r.HandleFunc( - // "/stake/delegators/{delegatorAddr}/validators", - // delegatorValidatorsHandlerFn(cliCtx, cdc), - // ).Methods("GET") - - // TODO Tests - // GET /stake/delegators/{delegatorAddr}/validators/{validatorAddr} // Query a validator that a delegator is bonded to - // r.HandleFunc( - // "/stake/delegators/{delegatorAddr}/validators", - // delegatorValidatorHandlerFn(cliCtx, cdc), - // ).Methods("GET") - // GET /stake/delegators/{delegatorAddr}/delegations/{validatorAddr} // Query a delegation between a delegator and a validator r.HandleFunc( "/stake/delegators/{delegatorAddr}/delegations/{validatorAddr}", @@ -165,6 +151,7 @@ func delegatorHandlerFn(cliCtx context.CLIContext, cdc *wire.Codec) http.Handler } } +// nolint gocyclo // HTTP request handler to query all staking txs (msgs) from a delegator func delegatorTxsHandlerFn(cliCtx context.CLIContext, cdc *wire.Codec) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) {