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)
|
|
}
|