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
|
|
@ -40,6 +40,7 @@ func (h *Server) postOrder(r *http.Request) (any, int, error) {
|
|||
}
|
||||
|
||||
err = r.ParseForm()
|
||||
fmt.Println(r.PostForm)
|
||||
if err != nil {
|
||||
return nil, http.StatusBadRequest, err
|
||||
}
|
||||
|
|
@ -75,5 +76,6 @@ func (h *Server) postOrder(r *http.Request) (any, int, error) {
|
|||
n.Status = strings.TrimSpace(r.FormValue("status"))
|
||||
|
||||
n.ID, err = h.s.SaveOrder(n)
|
||||
fmt.Println(n)
|
||||
return n, http.StatusAccepted, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue