Commit 3b8523b23d36b20afd2953508dd7ebe11031ba6d
1 parent
2fce01f08d
Exists in
master
Agregado get de producto by id.
Showing
1 changed file
with
5 additions
and
0 deletions
 
Show diff stats
src/app/services/producto.service.ts
| ... | ... | @@ -16,6 +16,11 @@ export class ProductoService { | 
| 16 | 16 | |
| 17 | 17 | constructor(private http: HttpClient) { } | 
| 18 | 18 | |
| 19 | + getProductoById(id): Observable<any> { | |
| 20 | + | |
| 21 | + return this.http.get(`${appSettings.apiUrl}/articulos/${id}`); | |
| 22 | + } | |
| 23 | + | |
| 19 | 24 | getAll(): Observable<any> { | 
| 20 | 25 | |
| 21 | 26 | return this.http.get(`${appSettings.apiUrl}/articulos`); |