cosmos-sdk/x/ibc/02-client/client/rest/rest.go

19 lines
398 B
Go

package rest
import (
"github.com/gorilla/mux"
"github.com/cosmos/cosmos-sdk/client"
)
// REST client flags
const (
RestClientID = "client-id"
RestRootHeight = "height"
)
// RegisterRoutes - Central function to define routes that get registered by the main application
func RegisterRoutes(clientCtx client.Context, r *mux.Router, queryRoute string) {
registerQueryRoutes(clientCtx, r)
}