Files
EdgeAdmin/internal/web/actions/default/clusters/clusterutils/clusters_helper.go
GoEdgeLab d7d0c8fbfe v1.4.1
2024-07-27 15:42:58 +08:00

24 lines
392 B
Go

package clusterutils
import (
"net/http"
"github.com/iwind/TeaGo/actions"
)
type ClustersHelper struct {
}
func NewClustersHelper() *ClustersHelper {
return &ClustersHelper{}
}
func (this *ClustersHelper) BeforeAction(actionPtr actions.ActionWrapper) {
var action = actionPtr.Object()
if action.Request.Method != http.MethodGet {
return
}
action.Data["teaMenu"] = "clusters"
}