From 65760d40c4b74d537742e342431554c99d569632 Mon Sep 17 00:00:00 2001 From: mpuebla Date: Thu, 8 Aug 2019 17:25:35 -0300 Subject: [PATCH] Cambiada ruta de servicio. --- src/app/services/producto.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/services/producto.service.ts b/src/app/services/producto.service.ts index 33057f5..61efc16 100644 --- a/src/app/services/producto.service.ts +++ b/src/app/services/producto.service.ts @@ -1,6 +1,7 @@ import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; +import { environment } from 'src/environments/environment.prod'; @Injectable({ providedIn: 'root' @@ -10,7 +11,7 @@ export class ProductoService { constructor(private http: HttpClient) { } getAll(): Observable { - return this.http.get('http://10.231.45.179:4705/autoservicio/articulos') + return this.http.get(`${environment.apiUrl}/articulos`); } } -- 1.9.1