(w http.ResponseWriter, r *http.Request)
| 36 | } |
| 37 | |
| 38 | func HomeHandler(w http.ResponseWriter, r *http.Request) { |
| 39 | user, err := gothic.CompleteUserAuth(w, r) |
| 40 | if err != nil { |
| 41 | http.Redirect(w, r, "/login/github", http.StatusTemporaryRedirect) |
| 42 | return |
| 43 | } |
| 44 | ptTemplate.ExecuteTemplate(w, "home.tpl", user) |
| 45 | } |
| 46 | |
| 47 | func AuthHandler(w http.ResponseWriter, r *http.Request) { |
| 48 | gothic.BeginAuthHandler(w, r) |
nothing calls this directly
no outgoing calls
no test coverage detected