import api from "src/api";

export const getKanbanReplies = async (kanbanId) => {
  const { data } = await api.get(`/kanban/${kanbanId}/replies`);
  return data.payload;
};

export const createKanbanReply = async (kanbanId, payload) => {
  const { data } = await api.post(`/kanban/${kanbanId}/replies`, payload);
  return data.payload;
};

export const updateKanbanReply = async (kanbanId, id, payload) => {
  const { data } = await api.put(`/kanban/${kanbanId}/replies/${id}`, payload);
  return data.payload;
};

export const deleteKanbanReply = async (kanbanId, id) => {
  const { data } = await api.delete(`/kanban/${kanbanId}/replies/${id}`);
  return data;
};
