mirror of
https://github.com/nkanaev/yarr.git
synced 2025-12-15 00:27:20 +00:00
rename skipauth -> manualauth
This commit is contained in:
@@ -9,11 +9,11 @@ type Route struct {
|
||||
url string
|
||||
urlRegex *regexp.Regexp
|
||||
handler func(http.ResponseWriter, *http.Request)
|
||||
skipAuth bool
|
||||
manualAuth bool
|
||||
}
|
||||
|
||||
func (r Route) SkipAuth() Route {
|
||||
r.skipAuth = true
|
||||
func (r Route) ManualAuth() Route {
|
||||
r.manualAuth = true
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user