From 9338b7cb24e6349b2d2c29f428d506b2da9da1d8 Mon Sep 17 00:00:00 2001 From: Eric Fernandez Date: Mon, 8 Oct 2018 18:54:39 -0300 Subject: [PATCH] Agrego servicio para recibir articulos por idlista --- src/js/service.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/js/service.js b/src/js/service.js index ba79684..1c344b2 100644 --- a/src/js/service.js +++ b/src/js/service.js @@ -1,11 +1,14 @@ angular.module('focaBusquedaProductos') .service('focaBusquedaProductosService', [ - '$http', - 'API_ENDPOINT', + '$http', + 'API_ENDPOINT', function($http, API_ENDPOINT) { return { getProductos: function() { return $http.get(API_ENDPOINT.URL + '/articulos'); + }, + getProductosByIdLista: function(id) { + return $http.get(API_ENDPOINT.URL + '/articulos/lista/' + id); } }; } -- 1.9.1