mark at incoming req

This commit is contained in:
Gitea 2023-12-27 03:40:24 +00:00
parent 37a5d0ac43
commit fcdfae85e3

View File

@ -65,9 +65,11 @@ func main() {
}() }()
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
log.Println("got request for table")
data.printTemplate(w, "table.tmpl") data.printTemplate(w, "table.tmpl")
}) })
http.HandleFunc("/list", func(w http.ResponseWriter, r *http.Request) { http.HandleFunc("/list", func(w http.ResponseWriter, r *http.Request) {
log.Println("got request for list")
data.printTemplate(w, "list.tmpl") data.printTemplate(w, "list.tmpl")
}) })
http.HandleFunc("/json", func(w http.ResponseWriter, r *http.Request) { http.HandleFunc("/json", func(w http.ResponseWriter, r *http.Request) {