search frontend
This commit is contained in:
parent
10140231a6
commit
d59c119f75
6 changed files with 46 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue