github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/cmd/srv-applet-mgr/apis/projectoperator/root.go (about)

     1  package projectoperator
     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("/project_operator"))
    11  
    12  func init() {
    13  	Root.Register(kit.NewRouter(&CreateProjectOperator{}))
    14  	Root.Register(kit.NewRouter(&RemoveProjectOperator{}))
    15  	Root.Register(kit.NewRouter(&GetProjectOperator{}))
    16  
    17  	access_key.RouterRegister(Root, enums.ApiGroupProjectOperator, enums.ApiGroupProjectOperatorDesc)
    18  }