feat: selector de producto por rubro en FastEntryPage y Mostrador Universal
This commit is contained in:
@@ -12,6 +12,12 @@ export const productService = {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
// Obtiene los productos clasificados vinculados a un rubro
|
||||
getByCategory: async (categoryId: number): Promise<Product[]> => {
|
||||
const response = await api.get<Product[]>(`/products/by-category/${categoryId}`);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
create: async (product: Partial<Product>): Promise<Product> => {
|
||||
const response = await api.post<Product>('/products', product);
|
||||
return response.data;
|
||||
|
||||
Reference in New Issue
Block a user