Commit 65760d40c4b74d537742e342431554c99d569632
1 parent
c9ff4e581f
Exists in
master
Cambiada ruta de servicio.
Showing
1 changed file
with
2 additions
and
1 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 | 5 | |
5 | 6 | @Injectable({ |
6 | 7 | providedIn: 'root' |
... | ... | @@ -10,7 +11,7 @@ export class ProductoService { |
10 | 11 | constructor(private http: HttpClient) { } |
11 | 12 | |
12 | 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 | } |