0g-chain/x/committee/client/rest/rest.go

20 lines
426 B
Go
Raw Normal View History

2020-03-14 01:16:45 +00:00
package rest
import (
"github.com/gorilla/mux"
"github.com/cosmos/cosmos-sdk/client/context"
)
// REST Variable names
const (
RestProposalID = "proposal-id"
RestCommitteeID = "committee-id"
)
// RegisterRoutes - Central function to define routes that get registered by the main application
2020-03-23 20:57:15 +00:00
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router) {
2020-03-14 01:16:45 +00:00
registerQueryRoutes(cliCtx, r)
2020-03-23 20:57:15 +00:00
registerTxRoutes(cliCtx, r)
2020-03-14 01:16:45 +00:00
}