1.4.5.2
This commit is contained in:
17
EdgeAdmin/internal/web/actions/default/dns/helper.go
Normal file
17
EdgeAdmin/internal/web/actions/default/dns/helper.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package dns
|
||||
|
||||
import (
|
||||
"github.com/iwind/TeaGo/actions"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type Helper struct {
|
||||
}
|
||||
|
||||
func (this *Helper) BeforeAction(action *actions.ActionObject) {
|
||||
if action.Request.Method != http.MethodGet {
|
||||
return
|
||||
}
|
||||
|
||||
action.Data["teaMenu"] = "dns"
|
||||
}
|
||||
Reference in New Issue
Block a user