mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-06 23:00:25 +08:00
22 lines
302 B
Go
22 lines
302 B
Go
|
|
package node
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/iwind/TeaGo/actions"
|
||
|
|
"net/http"
|
||
|
|
)
|
||
|
|
|
||
|
|
type Helper struct {
|
||
|
|
}
|
||
|
|
|
||
|
|
func NewHelper() *Helper {
|
||
|
|
return &Helper{}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (this *Helper) BeforeAction(action *actions.ActionObject) (goNext bool) {
|
||
|
|
if action.Request.Method != http.MethodGet {
|
||
|
|
return true
|
||
|
|
}
|
||
|
|
|
||
|
|
return true
|
||
|
|
}
|