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`); } }