From d36d915b0831ed0643717e782142db6129cd1e17 Mon Sep 17 00:00:00 2001 From: Yun Date: Mon, 18 Nov 2019 17:29:59 +0900 Subject: [PATCH] fix oracle rest path --- x/oracle/client/rest/query.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x/oracle/client/rest/query.go b/x/oracle/client/rest/query.go index 490c48e18..ecbd15d88 100644 --- a/x/oracle/client/rest/query.go +++ b/x/oracle/client/rest/query.go @@ -15,16 +15,16 @@ import ( func registerQueryRoute(cliCtx context.CLIContext, r *mux.Router) { r.HandleFunc(fmt.Sprintf("/oracle/denoms/{%s}/prevotes", RestDenom), queryPrevotesHandlerFunction(cliCtx)).Methods("GET") r.HandleFunc(fmt.Sprintf("/oracle/denoms/{%s}/prevotes/{%s}", RestDenom, RestVoter), queryPrevotesHandlerFunction(cliCtx)).Methods("GET") - r.HandleFunc("/oracle/voter/{%s}/prevotes", queryVoterPrevotesHandlerFunction(cliCtx)).Methods("GET") r.HandleFunc(fmt.Sprintf("/oracle/denoms/{%s}/votes", RestDenom), queryVotesHandlerFunction(cliCtx)).Methods("GET") r.HandleFunc(fmt.Sprintf("/oracle/denoms/{%s}/votes/{%s}", RestDenom, RestVoter), queryVotesHandlerFunction(cliCtx)).Methods("GET") - r.HandleFunc("/oracle/voter/{%s}/votes", queryVoterVotesHandlerFunction(cliCtx)).Methods("GET") r.HandleFunc(fmt.Sprintf("/oracle/denoms/{%s}/exchange_rate", RestDenom), queryExchangeRateHandlerFunction(cliCtx)).Methods("GET") r.HandleFunc("/oracle/denoms/actives", queryActivesHandlerFunction(cliCtx)).Methods("GET") r.HandleFunc("/oracle/denoms/exchange_rates", queryExchangeRatesHandlerFunction(cliCtx)).Methods("GET") - r.HandleFunc("/oracle/parameters", queryParamsHandlerFn(cliCtx)).Methods("GET") + r.HandleFunc("/oracle/voters/{%s}/prevotes", queryVoterPrevotesHandlerFunction(cliCtx)).Methods("GET") + r.HandleFunc("/oracle/voters/{%s}/votes", queryVoterVotesHandlerFunction(cliCtx)).Methods("GET") r.HandleFunc(fmt.Sprintf("/oracle/voters/{%s}/feeder", RestVoter), queryFeederDelegationHandlerFn(cliCtx)).Methods("GET") r.HandleFunc(fmt.Sprintf("/oracle/voters/{%s}/miss", RestVoter), queryMissHandlerFn(cliCtx)).Methods("GET") + r.HandleFunc("/oracle/parameters", queryParamsHandlerFn(cliCtx)).Methods("GET") } func queryVotesHandlerFunction(cliCtx context.CLIContext) http.HandlerFunc {