package drng import ( "github.com/iotaledger/goshimmer/plugins/webapi" "github.com/iotaledger/goshimmer/plugins/webapi/drng/collectiveBeacon" "github.com/iotaledger/goshimmer/plugins/webapi/drng/info/committee" "github.com/iotaledger/goshimmer/plugins/webapi/drng/info/randomness" "github.com/iotaledger/hive.go/node" ) // PluginName is the name of the web API DRNG endpoint plugin. const PluginName = "WebAPI DRNG Endpoint" var ( // Plugin is the plugin instance of the web API DRNG endpoint plugin. Plugin = node.NewPlugin(PluginName, node.Enabled, configure) ) func configure(_ *node.Plugin) { webapi.Server.POST("drng/collectiveBeacon", collectiveBeacon.Handler) webapi.Server.GET("drng/info/committee", committee.Handler) webapi.Server.GET("drng/info/randomness", randomness.Handler) }