Save new cake and fix navigation links
This commit is contained in:
parent
2857507fae
commit
d70144c39a
3 changed files with 3 additions and 3 deletions
|
|
@ -28,7 +28,7 @@ func (h *Server) postCake(r *http.Request) (any, int, error) {
|
|||
}
|
||||
n.Category = r.FormValue("category")
|
||||
n.Availability = r.FormValue("availibility")
|
||||
fmt.Println(n)
|
||||
n.ID, err = h.s.SaveCake(n)
|
||||
return n, http.StatusAccepted, err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue