Ref: #7492 Co-authored-by: Jonathan Gimeno <jgimeno@gmail.com> Co-authored-by: Alessio Treglia <alessio@tendermint.com> Co-authored-by: Frojdi Dymylja <33157909+fdymylja@users.noreply.github.com> Co-authored-by: Robert Zaremba <robert@zaremba.ch> Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
16 lines
318 B
Go
16 lines
318 B
Go
package rest
|
|
|
|
import (
|
|
"github.com/gorilla/mux"
|
|
|
|
"github.com/cosmos/cosmos-sdk/client"
|
|
"github.com/cosmos/cosmos-sdk/client/rest"
|
|
)
|
|
|
|
func RegisterHandlers(clientCtx client.Context, rtr *mux.Router) {
|
|
r := rest.WithHTTPDeprecationHeaders(rtr)
|
|
|
|
registerQueryRoutes(clientCtx, r)
|
|
registerTxHandlers(clientCtx, r)
|
|
}
|