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

     1  package wasmlog
     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("/wasmlog"))
    11  
    12  func init() {
    13  	Root.Register(kit.NewRouter(&RemoveWasmLogByInstanceID{}))
    14  
    15  	access_key.RouterRegister(Root, enums.ApiGroupWasmLog, enums.ApiGroupWasmLogDesc)
    16  }