mark at incoming req
This commit is contained in:
parent
37a5d0ac43
commit
fcdfae85e3
2
main.go
2
main.go
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user