Commit 531a6bf74893b3b694819a41f0c2a3e2d24da260
1 parent
8f055fb560
Exists in
master
sercicios
Showing
1 changed file
with
6 additions
and
0 deletions
Show diff stats
src/js/service.js
1 | angular.module('focaModalDetalleHojaRuta') | 1 | angular.module('focaModalDetalleHojaRuta') |
2 | .service('focaModalDetalleHojaRutaService', [ | 2 | .service('focaModalDetalleHojaRutaService', [ |
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 | getDetallesHojaRuta: function() { | 7 | getDetallesHojaRuta: function() { |
8 | return $http.get(API_ENDPOINT.URL + '/transportista'); | 8 | return $http.get(API_ENDPOINT.URL + '/transportista'); |
9 | }, | 9 | }, |
10 | getCisternasByIdRemito: function(idRemito) { | 10 | getCisternasByIdRemito: function(idRemito) { |
11 | return $http.get(API_ENDPOINT.URL + '/cisternas/obtener/remito/' + idRemito); | 11 | return $http.get(API_ENDPOINT.URL + '/cisternas/obtener/remito/' + idRemito); |
12 | }, | ||
13 | getRemitoById: function(idRemito) { | ||
14 | return $http.get(API_ENDPOINT.URL + '/remito/obtener/' + idRemito + '/punto'); | ||
15 | }, | ||
16 | postMovimientoHojaRuta: function(datos) { | ||
17 | return $http.post(API_ENDPOINT.URL + '/hoja-ruta/movimiento', datos); | ||
12 | } | 18 | } |
13 | }; | 19 | }; |
14 | } | 20 | } |
15 | ]); | 21 | ]); |
16 | 22 |