diff --git a/src/js/service.js b/src/js/service.js index 785f9cc..617c6a5 100644 --- a/src/js/service.js +++ b/src/js/service.js @@ -2,14 +2,14 @@ angular.module('focaBusquedaProductos') .service('focaBusquedaProductosService', [ '$http', 'API_ENDPOINT', - function($http, API_ENDPOINT) { + function ($http, API_ENDPOINT) { return { - getProductos: function() { + getProductos: function () { return $http.get(API_ENDPOINT.URL + '/articulos'); }, - getProductosByIdLista: function(id, filters) { + getProductosByIdLista: function (id, filters) { return $http.post(API_ENDPOINT.URL + '/articulos/lista', - {filters: filters, id: id}); + { filters: filters, id: id }); } }; }