Files
EdgeAdmin/internal/web/actions/default/clusters/clusterutils/clusters_helper.go

22 lines
355 B
Go
Raw Normal View History

2020-10-25 21:27:28 +08:00
package clusterutils
2020-09-06 16:19:34 +08:00
import (
"github.com/iwind/TeaGo/actions"
2020-10-25 21:27:28 +08:00
"net/http"
2020-09-06 16:19:34 +08:00
)
2020-10-25 21:27:28 +08:00
type ClustersHelper struct {
2020-09-06 16:19:34 +08:00
}
2020-10-25 21:27:28 +08:00
func NewClustersHelper() *ClustersHelper {
return &ClustersHelper{}
2020-09-06 16:19:34 +08:00
}
2020-10-25 21:27:28 +08:00
func (this *ClustersHelper) BeforeAction(action *actions.ActionObject) {
if action.Request.Method != http.MethodGet {
return
}
2020-09-06 16:19:34 +08:00
action.Data["teaMenu"] = "clusters"
}