removed cake categories
This commit is contained in:
parent
b3a5c0b19e
commit
d382de4236
10 changed files with 12 additions and 106 deletions
|
|
@ -26,8 +26,6 @@ func (h *Server) postCake(r *http.Request) (any, int, error) {
|
|||
if err != nil {
|
||||
return nil, http.StatusBadRequest, err
|
||||
}
|
||||
n.Category = r.FormValue("category")
|
||||
n.Availability = r.FormValue("availability")
|
||||
n.ID, err = h.s.SaveCake(n)
|
||||
fmt.Println(err)
|
||||
return n, http.StatusAccepted, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue