watering attempt 1
This commit is contained in:
@@ -225,6 +225,14 @@ export const weatherAPI = {
|
||||
apiClient.get(`/weather/conditions/suitable/${propertyId}`, { params }),
|
||||
};
|
||||
|
||||
// Watering API endpoints
|
||||
export const wateringAPI = {
|
||||
getPlans: (params) => apiClient.get('/watering/plans', { params }),
|
||||
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),
|
||||
};
|
||||
|
||||
// Admin API endpoints
|
||||
export const adminAPI = {
|
||||
getDashboard: () => apiClient.get('/admin/dashboard'),
|
||||
|
||||
Reference in New Issue
Block a user