Rename orders page template and add debug logging
This commit is contained in:
parent
fe703a9b1c
commit
3be7fb76e7
4 changed files with 4 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ func (h *Server) loadHandler() {
|
|||
|
||||
mux.HandleFunc("GET /order/", h.render(h.order, "order.html"))
|
||||
mux.HandleFunc("GET /", h.redirect("/orders", http.StatusSeeOther))
|
||||
mux.HandleFunc("GET /orders", h.render(h.orders, "index.html"))
|
||||
mux.HandleFunc("GET /orders", h.render(h.orders, "orders.html"))
|
||||
mux.HandleFunc("POST /order/", h.render(h.postOrder, "confirmation.html"))
|
||||
mux.HandleFunc("GET /cakes", h.render(h.cakes, "cakes.html"))
|
||||
mux.HandleFunc("GET /cake/", h.render(h.cake, "cake.html"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue