rename skipauth -> manualauth
This commit is contained in:
parent
0e2da62081
commit
05634ebdb7
3 changed files with 8 additions and 7 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue