Commit 21dbaa7385e40d264110c11e9e4bb20380e378b2

Authored by Marcelo Puebla
1 parent fb10d862ae
Exists in master

Codigo identado.

Showing 1 changed file with 4 additions and 4 deletions   Show diff stats
1 angular.module('focaBusquedaProductos') 1 angular.module('focaBusquedaProductos')
2 .service('focaBusquedaProductosService', [ 2 .service('focaBusquedaProductosService', [
3 '$http', 3 '$http',
4 'API_ENDPOINT', 4 'API_ENDPOINT',
5 function($http, API_ENDPOINT) { 5 function ($http, API_ENDPOINT) {
6 return { 6 return {
7 getProductos: function() { 7 getProductos: function () {
8 return $http.get(API_ENDPOINT.URL + '/articulos'); 8 return $http.get(API_ENDPOINT.URL + '/articulos');
9 }, 9 },
10 getProductosByIdLista: function(id, filters) { 10 getProductosByIdLista: function (id, filters) {
11 return $http.post(API_ENDPOINT.URL + '/articulos/lista', 11 return $http.post(API_ENDPOINT.URL + '/articulos/lista',
12 {filters: filters, id: id}); 12 { filters: filters, id: id });
13 } 13 }
14 }; 14 };
15 } 15 }
16 ]); 16 ]);
17 17