laconicd-deprecated/x/wasm/client/rest/rest.go
2023-02-28 15:05:49 +05:30

16 lines
488 B
Go

// Deprecated: the rest package will be removed. You can use the GRPC gateway instead
package rest
import (
"github.com/cosmos/cosmos-sdk/client"
"github.com/gorilla/mux"
)
// RegisterRoutes registers staking-related REST handlers to a router
// Deprecated: the rest package will be removed. You can use the GRPC gateway instead
func RegisterRoutes(cliCtx client.Context, r *mux.Router) {
registerQueryRoutes(cliCtx, r)
registerTxRoutes(cliCtx, r)
registerNewTxRoutes(cliCtx, r)
}