cosmos-sdk/x/slashing/client/rest/rest.go

16 lines
428 B
Go
Raw Normal View History

package rest
import (
"github.com/cosmos/cosmos-sdk/client/context"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/crypto/keys"
2018-08-06 11:11:30 -07:00
"github.com/gorilla/mux"
)
// RegisterRoutes registers staking-related REST handlers to a router
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, cdc *codec.Codec, kb keys.Keybase) {
2018-08-06 11:11:30 -07:00
registerQueryRoutes(cliCtx, r, cdc)
registerTxRoutes(cliCtx, r, cdc, kb)
}