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

16 lines
428 B
Go
Raw Normal View History

2018-05-14 16:43:51 -07:00
package rest
import (
"github.com/cosmos/cosmos-sdk/client/context"
"github.com/cosmos/cosmos-sdk/codec"
2018-08-06 11:11:30 -07:00
"github.com/cosmos/cosmos-sdk/crypto/keys"
"github.com/gorilla/mux"
2018-05-14 16:43:51 -07:00
)
// 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)
2018-05-14 16:43:51 -07:00
}