validator: add logout route
This commit is contained in:
parent
23ab4264f9
commit
d42593715d
2 changed files with 46 additions and 0 deletions
|
|
@ -44,6 +44,7 @@ func main() {
|
|||
mux := http.NewServeMux()
|
||||
mux.HandleFunc("/", Index)
|
||||
mux.Handle("/login", lc)
|
||||
mux.HandleFunc("/logout", logout)
|
||||
http.HandleFunc("/", mux.ServeHTTP)
|
||||
|
||||
log.Println("Ready, listening on port", *bind)
|
||||
|
|
|
|||
Reference in a new issue