import client from './client';
export const recoltesApi = {
    list: (plantingId) => client.get(`/api/plantings/${plantingId}/recoltes`).then(r => r.data),
    create: (plantingId, data) => client.post(`/api/plantings/${plantingId}/recoltes`, data).then(r => r.data),
    delete: (id) => client.delete(`/api/recoltes/${id}`),
};
