login page
This commit is contained in:
parent
94d1659ad5
commit
0e2da62081
5 changed files with 104 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue