2020-04-17 19:36:12 -07:00
|
|
|
package rest
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gorilla/mux"
|
|
|
|
|
2020-06-01 05:46:03 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/client"
|
2020-04-17 19:36:12 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/types/rest"
|
|
|
|
)
|
|
|
|
|
|
|
|
// RegisterRoutes - Central function to define routes that get registered by the main application
|
2020-06-17 12:56:48 -07:00
|
|
|
func RegisterRoutes(clientCtx client.Context, r *mux.Router) {
|
2020-06-01 05:46:03 -07:00
|
|
|
registerTxRoutes(clientCtx, r)
|
2020-04-17 19:36:12 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// CreateClientReq defines the properties of a create client request's body.
|
|
|
|
type CreateClientReq struct {
|
|
|
|
BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"`
|
|
|
|
}
|