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