Commit 15e7f854166fc9a5154bc77c0def0f9bb0c4fbc4
1 parent
273c25df8f
Exists in
master
Sintaxis.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/js/service.js
1 | angular.module('focaModalNotaPedido') | 1 | angular.module('focaModalNotaPedido') |
2 | .service('focaModalNotaPedidoService', [ | 2 | .service('focaModalNotaPedidoService', [ |
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 | getNotasPedido: function(usadoPor) { | 7 | getNotasPedido: function(usadoPor) { |
8 | sinRemito = usadoPor === 'remito' ? '/sin-remito' : ''; | 8 | var sinRemito = (usadoPor === 'remito' ? '/sin-remito' : ''); |
9 | return $http.get(API_ENDPOINT.URL + '/nota-pedido/listar' + sinRemito); | 9 | return $http.get(API_ENDPOINT.URL + '/nota-pedido/listar' + sinRemito); |
10 | } | 10 | } |
11 | }; | 11 | }; |
12 | } | 12 | } |
13 | ]); | 13 | ]); |
14 | 14 |