Commit 04a80f1e396c82c4a847042118ef8a2f0968fdb7

Authored by Marcelo Puebla
1 parent 65760d40c4
Exists in master and in 1 other branch validar_pve

Cambio de ruta.

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/app/services/producto.service.ts
1 import { Injectable } from '@angular/core'; 1 import { Injectable } from '@angular/core';
2 import { HttpClient } from '@angular/common/http'; 2 import { HttpClient } from '@angular/common/http';
3 import { Observable } from 'rxjs'; 3 import { Observable } from 'rxjs';
4 import { environment } from 'src/environments/environment.prod'; 4 import { appSettings } from 'src/etc/AppSettings';
5 5
6 @Injectable({ 6 @Injectable({
7 providedIn: 'root' 7 providedIn: 'root'
8 }) 8 })
9 export class ProductoService { 9 export class ProductoService {
10 10
11 constructor(private http: HttpClient) { } 11 constructor(private http: HttpClient) { }
12 12
13 getAll(): Observable<any> { 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 }
18 18