Commit 04a80f1e396c82c4a847042118ef8a2f0968fdb7
1 parent
65760d40c4
Exists in
master
and in
1 other branch
Cambio de ruta.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/app/services/producto.service.ts
1 | 1 | import { Injectable } from '@angular/core'; |
2 | 2 | import { HttpClient } from '@angular/common/http'; |
3 | 3 | import { Observable } from 'rxjs'; |
4 | -import { environment } from 'src/environments/environment.prod'; | |
4 | +import { appSettings } from 'src/etc/AppSettings'; | |
5 | 5 | |
6 | 6 | @Injectable({ |
7 | 7 | providedIn: 'root' |
... | ... | @@ -11,7 +11,7 @@ export class ProductoService { |
11 | 11 | constructor(private http: HttpClient) { } |
12 | 12 | |
13 | 13 | getAll(): Observable<any> { |
14 | - return this.http.get(`${environment.apiUrl}/articulos`); | |
14 | + return this.http.get(`${appSettings.apiUrl}/articulos`); | |
15 | 15 | } |
16 | 16 | |
17 | 17 | } |