Refactor: Fetch handler to return status code

This commit is contained in:
bronku 2025-03-22 23:53:38 +01:00
parent a7bd1478bf
commit 47323b32f8
4 changed files with 13 additions and 12 deletions

View file

@ -31,7 +31,7 @@ func (h *Server) openStore() error {
func (h *Server) loadHandler() {
mux := http.NewServeMux()
mux.HandleFunc("GET /order/", h.render(h.order, "order.html"))
mux.HandleFunc("GET /order/", h.render(h.getOrder, "order.html"))
mux.HandleFunc("GET /", h.render(h.index, "index.html"))
mux.HandleFunc("POST /order/", h.postOrder)