mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 21:50:28 +08:00
22 lines
355 B
Go
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"
|
|
}
|