Commit 8c519ea534e8f91e41561f2d0de96f7f2991df39

Authored by Marcelo Puebla
1 parent 229356bd3d
Exists in master and in 1 other branch validar_pve

Agregado servicio para borrar imagenes.

Showing 1 changed file with 5 additions and 1 deletions   Show diff stats
src/app/services/producto.service.ts
... ... @@ -69,10 +69,14 @@ export class ProductoService {
69 69 return this.http.get(url);
70 70 }
71 71  
72   - updateImages(body): Observable<any> {
  72 + saveInBase(body): Observable<any> {
73 73 return this.http.post(`${appSettings.apiUrl}/imagenes/guardar`, body);
74 74 }
75 75  
  76 + deleteImage(body) : Observable<any>{
  77 + return this.http.post(`${appSettings.apiUrl}/imagen/borrar`, body);
  78 + }
  79 +
76 80 getCategorias() {
77 81 return this.http.get(`${appSettings.apiUrl}/categorias`);
78 82 }