Refactor: Fetch handler to return status code
This commit is contained in:
parent
a7bd1478bf
commit
47323b32f8
4 changed files with 13 additions and 12 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue