github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/cmd/srv-applet-mgr/apis/configuration/root.go (about) 1 package configuration 2 3 import ( 4 "github.com/machinefi/w3bstream/pkg/depends/kit/httptransport" 5 "github.com/machinefi/w3bstream/pkg/depends/kit/kit" 6 "github.com/machinefi/w3bstream/pkg/enums" 7 "github.com/machinefi/w3bstream/pkg/modules/access_key" 8 ) 9 10 var Root = kit.NewRouter(httptransport.Group("/configuration")) 11 12 func init() { 13 Root.Register(kit.NewRouter(&EthClient{})) 14 Root.Register(kit.NewRouter(&ChainConfig{})) 15 16 access_key.RouterRegister(Root, enums.ApiGroupConfiguration, enums.ApiGroupConfigurationDesc) 17 }