Save new cake and fix navigation links

This commit is contained in:
bronku 2025-03-26 15:10:33 +01:00
parent 2857507fae
commit d70144c39a
3 changed files with 3 additions and 3 deletions

View file

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