sdrgs
This commit is contained in:
@@ -228,6 +228,7 @@ export const weatherAPI = {
|
||||
// Watering API endpoints
|
||||
export const wateringAPI = {
|
||||
getPlans: (params) => apiClient.get('/watering/plans', { params }),
|
||||
updatePlan: (planId, payload) => apiClient.put(`/watering/plans/${planId}`, payload),
|
||||
createPlan: (payload) => apiClient.post('/watering/plans', payload),
|
||||
getPlanPoints: (planId) => apiClient.get(`/watering/plans/${planId}/points`),
|
||||
addPlanPoint: (planId, payload) => apiClient.post(`/watering/plans/${planId}/points`, payload),
|
||||
|
||||
Reference in New Issue
Block a user