search frontend

This commit is contained in:
bronku 2025-03-29 09:13:40 +01:00
parent 10140231a6
commit d59c119f75
6 changed files with 46 additions and 16 deletions

View file

@ -14,6 +14,12 @@ func (h *Server) orders(r *http.Request) (any, int, error) {
return data, http.StatusOK, err
}
func (h *Server) ordersSearch(r *http.Request) (any, int, error) {
data, err := h.s.GetOrders()
data = data[:3]
return data, http.StatusOK, err
}
func (h *Server) cakes(r *http.Request) (any, int, error) {
data, err := h.s.GetCakes()
return data, http.StatusOK, err