feat: selector de producto por rubro en FastEntryPage y Mostrador Universal

This commit is contained in:
2026-02-21 19:59:19 -03:00
parent 16f84237fb
commit e21028ee9f
5 changed files with 108 additions and 3 deletions

View File

@@ -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;