Files
EdgeAdmin/internal/web/actions/default/api/node/helper.go

22 lines
302 B
Go
Raw Normal View History

2020-09-06 16:19:34 +08:00
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
}