import api from "./client";

export const OffersApi = {
  list: (params) => api.get("/offers", { params }),
  get: (id) => api.get(`/offers/${id}`),
  create: (payload) => api.post("/offers", payload),
  update: (id, payload) => api.put(`/offers/${id}`, payload),
  remove: (id) => api.delete(`/offers/${id}`),
};
