Files
EdgeAdmin/internal/web/actions/default/clusters/clusterutils/clusters_helper.go
2021-10-15 12:54:23 +08:00

23 lines
391 B
Go

package clusterutils
import (
"github.com/iwind/TeaGo/actions"
"net/http"
)
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"
}