Files
EdgeAdmin/internal/web/actions/default/clusters/clusterutils/clusters_helper.go
2020-11-10 15:45:48 +08:00

22 lines
355 B
Go

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