mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-20 16:01:36 +02:00
feat(middlewares): middleware bypass rules
This commit is contained in:
@@ -16,6 +16,10 @@ type RuleOn struct {
|
||||
checker Checker
|
||||
}
|
||||
|
||||
func (on *RuleOn) Check(cached Cache, r *http.Request) bool {
|
||||
return on.checker.Check(cached, r)
|
||||
}
|
||||
|
||||
const (
|
||||
OnHeader = "header"
|
||||
OnQuery = "query"
|
||||
|
||||
Reference in New Issue
Block a user