diff --git a/src/app/services/producto.service.ts b/src/app/services/producto.service.ts index ab74304..457681f 100644 --- a/src/app/services/producto.service.ts +++ b/src/app/services/producto.service.ts @@ -16,6 +16,11 @@ export class ProductoService { constructor(private http: HttpClient) { } + getProductoById(id): Observable { + + return this.http.get(`${appSettings.apiUrl}/articulos/${id}`); + } + getAll(): Observable { return this.http.get(`${appSettings.apiUrl}/articulos`);