validator: add logout route

This commit is contained in:
nemunaire 2018-02-18 14:42:35 +01:00
commit d42593715d
2 changed files with 46 additions and 0 deletions

View file

@ -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)