Add single cake endpoint handler
This commit is contained in:
parent
f552e87a9d
commit
01732b97fc
4 changed files with 56 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ func (h *Server) loadHandler() {
|
|||
mux.HandleFunc("GET /", h.render(h.index, "index.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"))
|
||||
|
||||
h.Handler = mux
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue