removed cake categories

This commit is contained in:
bronku 2026-06-11 01:13:42 +02:00
parent b3a5c0b19e
commit d382de4236
10 changed files with 12 additions and 106 deletions

View file

@ -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