()
| 120 | } |
| 121 | |
| 122 | func main() { |
| 123 | http.HandleFunc("/", validate(protectedProfile)) |
| 124 | http.HandleFunc("/login", setToken) |
| 125 | http.HandleFunc("/profile", validate(protectedProfile)) |
| 126 | http.HandleFunc("/logout", validate(logout)) |
| 127 | err := http.ListenAndServeTLS(":443", "cert/cert.pem", "cert/key.pem", nil) |
| 128 | if err != nil { |
| 129 | log.Fatal("ListenAndServe: ", err) |
| 130 | } |
| 131 | } |
nothing calls this directly
no test coverage detected