get-home-page.go (254B)
1 package handlers 2 3 import ( 4 "net/http" 5 ) 6 7 func GetHomePage(rw http.ResponseWriter, r *http.Request) { 8 go logRequest(r) 9 rw.Header().Set("Content-Type", "application/json") 10 header, resp := getRespForHomePage(r) 11 rw.WriteHeader(header) 12 rw.Write(resp) 13 }