github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/cmd/srv-applet-mgr/apis/account_access_key/root.go (about) 1 package account_access_key 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 ( 11 Root = kit.NewRouter(httptransport.Group("/account_access_key")) 12 ) 13 14 func init() { 15 Root.Register(kit.NewRouter(&ListAccountAccessKey{})) 16 Root.Register(kit.NewRouter(&ListAccessGroupMetas{})) 17 Root.Register(kit.NewRouter(&GetAccessKeyByName{})) 18 Root.Register(kit.NewRouter(&CreateAccountAccessKey{})) 19 Root.Register(kit.NewRouter(&UpdateAccountAccessKeyByName{})) 20 Root.Register(kit.NewRouter(&DeleteAccountAccessKeyByName{})) 21 22 access_key.RouterRegister(Root, enums.ApiGroupAccountAccessKey, enums.ApiGroupAccountAccessKeyDesc) 23 }