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); } }; }