Add single cake endpoint handler

This commit is contained in:
bronku 2025-03-26 14:33:07 +01:00
parent f552e87a9d
commit 01732b97fc
4 changed files with 56 additions and 0 deletions

View file

@ -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
}