Commit 9338b7cb24e6349b2d2c29f428d506b2da9da1d8

Authored by Eric Fernandez
1 parent 2125e40ad9
Exists in master and in 1 other branch develop

Agrego servicio para recibir articulos por idlista

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