diff --git a/src/app/services/producto.service.ts b/src/app/services/producto.service.ts index 61efc16..2e0eb5e 100644 --- a/src/app/services/producto.service.ts +++ b/src/app/services/producto.service.ts @@ -1,7 +1,7 @@ import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; -import { environment } from 'src/environments/environment.prod'; +import { appSettings } from 'src/etc/AppSettings'; @Injectable({ providedIn: 'root' @@ -11,7 +11,7 @@ export class ProductoService { constructor(private http: HttpClient) { } getAll(): Observable { - return this.http.get(`${environment.apiUrl}/articulos`); + return this.http.get(`${appSettings.apiUrl}/articulos`); } }