spreader stuff
This commit is contained in:
@@ -181,6 +181,22 @@ export const applicationsAPI = {
|
||||
getStats: (params) => apiClient.get('/applications/stats', { params }),
|
||||
};
|
||||
|
||||
// Spreader Settings API endpoints
|
||||
export const spreaderSettingsAPI = {
|
||||
getAll: () => apiClient.get('/spreader-settings'),
|
||||
getBrands: () => apiClient.get('/spreader-settings/brands'),
|
||||
getByBrand: (brand) => apiClient.get(`/spreader-settings/${brand}`),
|
||||
};
|
||||
|
||||
// Product Spreader Settings API endpoints
|
||||
export const productSpreaderSettingsAPI = {
|
||||
getByProduct: (productId) => apiClient.get(`/product-spreader-settings/product/${productId}`),
|
||||
getByUserProduct: (userProductId) => apiClient.get(`/product-spreader-settings/user-product/${userProductId}`),
|
||||
create: (settingData) => apiClient.post('/product-spreader-settings', settingData),
|
||||
update: (id, settingData) => apiClient.put(`/product-spreader-settings/${id}`, settingData),
|
||||
delete: (id) => apiClient.delete(`/product-spreader-settings/${id}`),
|
||||
};
|
||||
|
||||
// Weather API endpoints
|
||||
export const weatherAPI = {
|
||||
getCurrent: (propertyId) => apiClient.get(`/weather/${propertyId}`),
|
||||
|
||||
Reference in New Issue
Block a user