Commit 65760d40c4b74d537742e342431554c99d569632

Authored by Marcelo Puebla
1 parent c9ff4e581f
Exists in master and in 1 other branch validar_pve

Cambiada ruta de servicio.

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
src/app/services/producto.service.ts
1 import { Injectable } from '@angular/core'; 1 import { Injectable } from '@angular/core';
2 import { HttpClient } from '@angular/common/http'; 2 import { HttpClient } from '@angular/common/http';
3 import { Observable } from 'rxjs'; 3 import { Observable } from 'rxjs';
4 import { environment } from 'src/environments/environment.prod';
4 5
5 @Injectable({ 6 @Injectable({
6 providedIn: 'root' 7 providedIn: 'root'
7 }) 8 })
8 export class ProductoService { 9 export class ProductoService {
9 10
10 constructor(private http: HttpClient) { } 11 constructor(private http: HttpClient) { }
11 12
12 getAll(): Observable<any> { 13 getAll(): Observable<any> {
13 return this.http.get('http://10.231.45.179:4705/autoservicio/articulos') 14 return this.http.get(`${environment.apiUrl}/articulos`);
14 } 15 }
15 16
16 } 17 }
17 18